Skip to content

Commit 8b9ec31

Browse files
guggeroellemouton
authored andcommitted
subserver_permissions: skip empty elements
1 parent 9444927 commit 8b9ec31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

subserver_permissions.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ func getAllPermissions(readOnly bool) []bakery.Op {
8080

8181
for _, methodPerms := range getAllMethodPermissions() {
8282
for _, methodPerm := range methodPerms {
83+
if methodPerm.Action == "" || methodPerm.Entity == "" {
84+
continue
85+
}
86+
8387
if readOnly && methodPerm.Action != "read" {
8488
continue
8589
}

0 commit comments

Comments
 (0)