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

Fix teams exception

This commit is contained in:
Jake Barnby 2022-08-17 00:14:22 +12:00
parent 63977da7ee
commit b09aaabd14

View file

@ -836,7 +836,7 @@ App::delete('/v1/teams/:teamId/memberships/:membershipId')
*/
$validator = new Authorization('delete');
if (!$validator->isValid($membership->getDelete())) {
throw new Exception('Unauthorized permissions', 401, Exception::USER_UNAUTHORIZED);
throw new Exception(Exception::USER_UNAUTHORIZED);
}
try {