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