Fixed a bug in organisation admin permission check
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user