Skip to content

Commit

Permalink
兼容mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
COOL committed Jun 13, 2024
1 parent ef688d3 commit fa8c95d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/base/controller/admin/sys/role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
];
Expand Down

0 comments on commit fa8c95d

Please sign in to comment.