mirror of
https://github.com/certd/certd.git
synced 2026-07-30 09:17:36 +08:00
chore: 1
This commit is contained in:
@@ -49,6 +49,9 @@ export class RoleController extends CrudController<RoleService> {
|
||||
@Query('id')
|
||||
id: number
|
||||
) {
|
||||
if (id === 1) {
|
||||
throw new Error('不能删除默认的管理员角色');
|
||||
}
|
||||
return await super.delete(id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user