Exemplo n.º 1
0
 def is_public_forced(self):
     return self.is_public() and \
       config.user_may(self.owner(), "general.force_" + self.type_name())
Exemplo n.º 2
0
 def is_public_forced(self):
     return self.is_public() and config.user_may(self.owner(), "general.force_" + self.type_name())
Exemplo n.º 3
0
 def is_public(self):
     return self._["public"] and (not self.owner() or config.user_may(
         self.owner(), "general.publish_" + self.type_name()))
Exemplo n.º 4
0
 def is_public(self):
     return self._["public"] and (
         not self.owner() or config.user_may(self.owner(), "general.publish_" + self.type_name())
     )