mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
core: 修复无法删除自定权限组的问题
This commit is contained in:
1 parent
f570ef70a0
commit
fa10caaba1
3 files changed
+8
-2
No files matched your search
@@ -179,7 +179,8 @@ class DomainRoleHandler extends ManageHandler {
|
||||
this.back();
|
||||
}
|
||||
|
||||
async postDelete({ domainId, roles }) {
|
||||
@param('roles', Types.Array)
|
||||
async postDelete(domainId: string, roles: string[]) {
|
||||
for (const role of roles) {
|
||||
if (['root', 'default', 'guest'].includes(role)) {
|
||||
throw new ValidationError('role');
|
||||
|
||||
Reference in new issue
Block a user