mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Fix syntax error
This commit is contained in:
parent
187517a9c7
commit
48df9bb678
|
@ -28,7 +28,7 @@ class UsersServiceProvider extends ServiceProvider
|
|||
|
||||
$events->listen(ModelAllow::class, function (ModelAllow $event) {
|
||||
if ($event->model instanceof User) {
|
||||
if ($event->action === 'edit') &&
|
||||
if ($event->action === 'edit' &&
|
||||
$event->model->id == $event->actor->id) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user