Ignore error validation
This commit is contained in:
1 parent
1bb0eb150d
commit
aee307dfa0
14 files changed
+61
-29
No files matched your search
+5
-1
@@ -117,7 +117,11 @@ func (e *Dept) GetPage(bl bool) ([]Dept, error) {
|
||||
// 数据权限控制
|
||||
dataPermission := new(DataPermission)
|
||||
dataPermission.UserId, _ = tools.StringToInt(e.DataScope)
|
||||
table = dataPermission.GetDataScope("sys_dept", table)
|
||||
tableper, err := dataPermission.GetDataScope("sys_dept", table)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
table = tableper
|
||||
}
|
||||
|
||||
if err := table.Order("sort").Find(&doc).Error; err != nil {
|
||||
|
||||
Reference in new issue
Block a user