diff --git a/src/Core/CoreServiceProvider.php b/src/Core/CoreServiceProvider.php index 127bd99b1..0759a0044 100644 --- a/src/Core/CoreServiceProvider.php +++ b/src/Core/CoreServiceProvider.php @@ -69,7 +69,7 @@ class CoreServiceProvider extends AbstractServiceProvider }); $this->app->make('flarum.gate')->before(function (User $actor, $ability, $model = null) { - if ($actor->hasPermission($ability)) { + if (! $model && $actor->hasPermission($ability)) { return true; }