mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +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