Beispiel #1
0
 def can_write(self, user):
     if not settings.ANONYMOUS and (not user or user.is_anonymous()):
         return False
     return ReusablePlugin.can_write(self, user)
Beispiel #2
0
 def can_write(self, **kwargs):
     user = kwargs.get('user', None)
     if not settings.ANONYMOUS and (not user or user.is_anonymous()):
         return False
     return ReusablePlugin.can_write(self, **kwargs)
Beispiel #3
0
 def can_write(self, user):
     if not settings.ANONYMOUS and (not user or user.is_anonymous()):
         return False
     return ReusablePlugin.can_write(self, user)
Beispiel #4
0
 def can_write(self, **kwargs):
     user = kwargs.get('user', None)
     if not settings.ANONYMOUS and (not user or user.is_anonymous()):
         return False
     return ReusablePlugin.can_write(self, **kwargs)