diff --git a/framework/core/src/Core/Users/UsersServiceProvider.php b/framework/core/src/Core/Users/UsersServiceProvider.php index 97a0bbddd..7e5bc6e2a 100644 --- a/framework/core/src/Core/Users/UsersServiceProvider.php +++ b/framework/core/src/Core/Users/UsersServiceProvider.php @@ -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; }