mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 01:55:10 +02:00
rename super user to admin and middleware refactoring
This commit is contained in:
parent
7b755a273c
commit
03051878ef
26 changed files with 790 additions and 529 deletions
|
@ -61,11 +61,11 @@ export async function deleteRole(
|
|||
);
|
||||
}
|
||||
|
||||
if (role[0].isSuperUserRole) {
|
||||
if (role[0].isAdmin) {
|
||||
return next(
|
||||
createHttpError(
|
||||
HttpCode.FORBIDDEN,
|
||||
`Cannot delete a Super User role`
|
||||
`Cannot delete a Admin role`
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue