(self, perm, obj, check_groups=True, approved=True)
return False
Check if user has the permission for the given object
Check if user has the permission for the given object
Check if user has the permission for the given object
def has_perm(self, perm, obj, check_groups=True, approved=True):
        """
        Check if user has the permission for the given object
        """
        if self.user:
            if self.has_user_perms(perm, obj, approved, check_groups):
                return True
        if self.group:
            return self.has_group_perms(perm, obj, approved)
        return False
def has_perm ( self , perm , obj , check_groups = True , approved = True ) : if self . user : if self . has_user_perms ( perm , obj , approved , check_groups ) : return True if self . group : return self . has_group_perms ( perm , obj , approved ) return False