This commit is contained in:
PandaX
2023-10-18 09:12:49 +08:00
parent 3cd085fb9e
commit a5d7b504cc
4 changed files with 6 additions and 32 deletions

View File

@@ -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 {