mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-28 03:23:25 +08:00
db_dispatcher: 移除对listFields的调试日志
This commit is contained in:
@@ -110,14 +110,10 @@ func listFields(manager IModelManager, userCred mcclient.TokenCredential) []stri
|
||||
for _, col := range manager.TableSpec().Columns() {
|
||||
tags := col.Tags()
|
||||
list, _ := tags["list"]
|
||||
if !utils.IsInStringArray(list, []string{"user", "admin", ""}) {
|
||||
log.Warningf("Invalid list value %s for field %s", list, col.Name())
|
||||
}
|
||||
if list == "user" || (list == "admin" && IsAdminAllowList(userCred, manager)) {
|
||||
ret = append(ret, col.Name())
|
||||
}
|
||||
}
|
||||
log.Debugf("listFields: %s", ret)
|
||||
return ret
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user