Allura/allura/model/discuss.py
def has_activity_access(self, perm, user, activity):
        """Return True if user has perm access to this object, otherwise
        return False.

        For the purposes of activitystreams, we're saying that the user does
        not have access to a 'comment' activity unless he also has access to
        the artifact on which it was posted (if there is one).
        """
        if self.project is None or self.deleted or self.status != 'ok':
            return False
        artifact_access = True
        if self.thread.artifact:
            if self.thread.artifact.project is None:
                return False
            if self.thread.artifact.deleted:
                return False
            artifact_access = security.has_access(self.thread.artifact, perm,
                                                  user, self.thread.artifact.project)

        return artifact_access and security.has_access(self, perm, user,
                                                       self.project)
Return True if user has perm access to this object, otherwise
        return False.

        For the purposes of activitystreams, we're saying that the user does
        not have access to a 'comment' activity unless he also has access to
        the artifact on which it was posted (if there is one).
        
Return True if user has perm access to this object, otherwise
return False.

For the purposes of activitystreams, we're saying that the user does
not have access to a 'comment' activity unless he also has access to
the artifact on which it was posted (if there is one).
Return True if user has perm access to this object otherwise return False . For the purposes of activitystreams we ' re saying that the user does not have access to a ' comment ' activity unless he also has access to the artifact on which it was posted ( if there is one ) .
def has_activity_access(self, perm, user, activity):
        if self.project is None or self.deleted or self.status != 'ok':
            return False
        artifact_access = True
        if self.thread.artifact:
            if self.thread.artifact.project is None:
                return False
            if self.thread.artifact.deleted:
                return False
            artifact_access = security.has_access(self.thread.artifact, perm,
                                                  user, self.thread.artifact.project)
        return artifact_access and security.has_access(self, perm, user,
                                                       self.project)
def has_activity_access ( self , perm , user , activity ) : if self . project is None or self . deleted or self . status != 'ok' : return False artifact_access = True if self . thread . artifact : if self . thread . artifact . project is None : return False if self . thread . artifact . deleted : return False artifact_access = security . has_access ( self . thread . artifact , perm , user , self . thread . artifact . project ) return artifact_access and security . has_access ( self , perm , user , self . project )
Return True if user has perm access to this object, otherwise
return False.
Return True if user has perm access to this object otherwise return False .
"""Return True if user has perm access to this object, otherwise
        return False.

        For the purposes of activitystreams, we're saying that the user does
        not have access to a 'comment' activity unless he also has access to
        the artifact on which it was posted (if there is one).
        """
self
perm
user
activity