mirror of
https://github.com/flarum/core.git
synced 2025-07-30 05:00:56 +02:00
Remove ability for users to delete themselves
This commit is contained in:
@@ -6,7 +6,6 @@ import FieldSet from 'flarum/components/FieldSet';
|
||||
import NotificationGrid from 'flarum/components/NotificationGrid';
|
||||
import ChangePasswordModal from 'flarum/components/ChangePasswordModal';
|
||||
import ChangeEmailModal from 'flarum/components/ChangeEmailModal';
|
||||
import DeleteAccountModal from 'flarum/components/DeleteAccountModal';
|
||||
import listItems from 'flarum/helpers/listItems';
|
||||
|
||||
/**
|
||||
@@ -88,14 +87,6 @@ export default class SettingsPage extends UserPage {
|
||||
})
|
||||
);
|
||||
|
||||
items.add('deleteAccount',
|
||||
Button.component({
|
||||
children: app.trans('core.delete_account'),
|
||||
className: 'Button Button--danger',
|
||||
onclick: () => app.modal.show(new DeleteAccountModal())
|
||||
})
|
||||
);
|
||||
|
||||
return items;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user