Menu

#4 Cannot edit cascading protected page

open
nobody
None
5
2010-06-27
2010-06-27
liangent
No

def can(self, action):
level = self.protection.get(action, (action, ))[0]
if level == 'sysop': level = compatibility.protectright(self.site.version)

return level in self.site.rights

This piece of code has some bug. Even if I'm sysop it says I cannot edit a cascading protected page.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.