mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-11 00:22:49 +00:00
兼容mysql
This commit is contained in:
parent
ef688d340b
commit
fa8c95d7aa
@ -27,8 +27,8 @@ import { BaseSysRoleService } from '../../../service/sys/role';
|
||||
['label != :label', { label: 'admin' }],
|
||||
// 如果不是超管,只能看到自己新建的或者自己有的角色
|
||||
[
|
||||
'(userId=:userId or id in (:...roleIds))',
|
||||
{ userId, roleIds },
|
||||
`(userId=:userId or id in (${roleIds.join(',')}))`,
|
||||
{ userId },
|
||||
username !== 'admin',
|
||||
],
|
||||
];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user