Fix teams exception

This commit is contained in:
Jake Barnby
2022-08-17 00:14:22 +12:00
parent 63977da7ee
commit b09aaabd14
+1 -1
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 {