diff --git a/src/Controller/OrganisationController.php b/src/Controller/OrganisationController.php index a37305b..1cb09c2 100644 --- a/src/Controller/OrganisationController.php +++ b/src/Controller/OrganisationController.php @@ -645,8 +645,9 @@ class OrganisationController extends SimpleController }); if (!$currentUser->isMaster() && $currentUser->roles()->where('slug', 'organisations-admin')->count() == 0) { $sprunje->extendQuery(function ($query) { - return $query->where('flag_approved', true) - ->orWhereNotNull('is_member'); + return $query->where(function($query) { + $query->where('flag_approved', true)->orWhereNotNull('is_member'); + }); }); }