Thomas Waldmann  committed 1a6be4a

if .may() gets a list of names, use first name to fetch item from storage

  • Participants
  • Parent commits ed13847
  • Branches namespaces

Comments (0)

Files changed (1)

File MoinMoin/storage/middleware/

         return ProtectedItem(self, item)
     def may(self, itemname, capability, username=None):
+        if isinstance(itemname, list):
+            # if we get a list of names, just use first one to fetch item
+            itemname = itemname[0]
         item = self[itemname]
         allowed = item.allows(capability, user_name=username)
         return allowed