1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

feat: tests

This commit is contained in:
Christy Jacob 2022-08-14 14:25:59 +05:30
parent 8e24dbe22f
commit 70d2ebf55b

View file

@ -594,7 +594,7 @@ App::patch('/v1/teams/:teamId/memberships/:membershipId')
$isOwner = Authorization::isRole('team:' . $team->getId() . '/owner');
if (!$isOwner && !$isPrivilegedUser && !$isAppUser) { // Not owner, not admin, not app (server)
throw new Exception(Exception::USER_UNAUTHORIZED);
throw new Exception(Exception::USER_UNAUTHORIZED, 'User is not allowed to modify roles');
}
/**