mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-01 16:26:39 +00:00
ability to remove user from org
This commit is contained in:
@@ -61,11 +61,11 @@ export async function deleteRole(
|
||||
);
|
||||
}
|
||||
|
||||
if (role[0].isSuperuserRole) {
|
||||
if (role[0].isSuperUserRole) {
|
||||
return next(
|
||||
createHttpError(
|
||||
HttpCode.FORBIDDEN,
|
||||
`Cannot delete a superuser role`
|
||||
`Cannot delete a Super User role`
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user