Replace ClientPermissions with a list of strings.
Now that we support external auth, the permissions list is open-ended. Make it a list for simplicity.
This commit is contained in:
1 parent
439dbabaa5
commit
a86fb08f6c
11 files changed
+213
-175
No files matched your search
+10
-1
@@ -592,7 +592,16 @@ func checkGroupPermissions(w http.ResponseWriter, r *http.Request, groupname str
|
||||
Password: pass,
|
||||
},
|
||||
)
|
||||
if err != nil || !p.Record {
|
||||
record := false
|
||||
if err == nil {
|
||||
for _, v := range p {
|
||||
if v == "record" {
|
||||
record = true
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
if err != nil || !record {
|
||||
if err == group.ErrNotAuthorised {
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user