We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38e7252 commit 4922777Copy full SHA for 4922777
auth_server/authz/acl_xorm.go
@@ -43,7 +43,7 @@ type XormAuthzConfig struct {
43
type XormACL []XormACLEntry
44
45
type XormACLEntry struct {
46
- ACLEntry `xorm:"'acl_entry'"`
+ ACLEntry `xorm:"'acl_entry' JSON"`
47
Seq int64
48
}
49
@@ -138,8 +138,10 @@ func (xa *aclXormAuthz) updateACLCache() error {
138
// Get ACL from Xorm.io database connection
139
var newACL []XormACLEntry
140
141
- xa.engine.OrderBy("seq").Find(&newACL)
142
-
+ err := xa.engine.OrderBy("seq").Find(&newACL)
+ if err != nil {
143
+ return err
144
+ }
145
var retACL ACL
146
for _, e := range newACL {
147
retACL = append(retACL, e.ACLEntry)
0 commit comments