Fix teams exception
This commit is contained in:
parent
63977da7ee
commit
b09aaabd14
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue