diff --git a/src/ServicesProvider/ServicesProvider.php b/src/ServicesProvider/ServicesProvider.php index a3fe98b..e4cc19c 100644 --- a/src/ServicesProvider/ServicesProvider.php +++ b/src/ServicesProvider/ServicesProvider.php @@ -103,7 +103,7 @@ class ServicesProvider * @return bool true if $user is an administrator of $organisation. */ $authorizer->addCallback('is_organisation_admin', function ($user_id, $organisation_id) { - return Capsule::table('organisation_members') + $query = Capsule::table('organisation_members') ->where('user_id', $user_id) ->where('organisation_id', $organisation_id) ->where('flag_admin', true);