1
0
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:
Toby Zerner
2015-05-26 18:03:02 +09:30
parent a4a0092513
commit e5532d9618
7 changed files with 123 additions and 8 deletions

View File

@@ -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);
});