def perform_permissions_check ( self , user , obj , perms ) : return self . request . forum_permission_handler . can_download_files ( obj , user )
python how to check if a user has read permissions to a file
Performs the permission check .
def perform_permissions_check(self, user, obj, perms):
        """ Performs the permission check. """
        return self.request.forum_permission_handler.can_download_files(obj, user)