hasTeamPermission($organization, $permission)) { throw new AuthorizationException(); } } }