Exemplo n.º 1
0
    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
Exemplo n.º 2
0
	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