mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-04 11:01:26 +08:00
[优化]
This commit is contained in:
@@ -67,7 +67,6 @@ func OrgAuthSet(tx *gorm.DB, roleId int64, owner string) {
|
||||
if roleId == 0 {
|
||||
return
|
||||
}
|
||||
//TODO 使用缓存
|
||||
role, err := services.SysRoleModelDao.FindOrganizationsByRoleId(roleId)
|
||||
biz.ErrIsNil(err, "查询角色数据权限失败")
|
||||
if role.DataScope != entity.SELFDATASCOPE {
|
||||
|
||||
Reference in New Issue
Block a user