mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-13 18:42: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' }],
|
['label != :label', { label: 'admin' }],
|
||||||
// 如果不是超管,只能看到自己新建的或者自己有的角色
|
// 如果不是超管,只能看到自己新建的或者自己有的角色
|
||||||
[
|
[
|
||||||
'(userId=:userId or id in (:...roleIds))',
|
`(userId=:userId or id in (${roleIds.join(',')}))`,
|
||||||
{ userId, roleIds },
|
{ userId },
|
||||||
username !== 'admin',
|
username !== 'admin',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user