mirror of
https://github.com/flarum/core.git
synced 2025-07-19 07:41:22 +02:00
Roughly implement change password/email, delete account modals
This commit is contained in:
@@ -214,7 +214,7 @@ class CoreServiceProvider extends ServiceProvider
|
||||
});
|
||||
|
||||
// Allow a user to edit their own account.
|
||||
User::grantPermission('edit', function ($grant, $user) {
|
||||
User::grantPermission(['edit', 'delete'], function ($grant, $user) {
|
||||
$grant->where('id', $user->id);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user