kolibri/core/auth/permissions/base.py
def _permissions_from_any(self, user, obj, method_name):
        """
        Private helper method to do the corresponding method calls on children permissions instances,
        and succeed as soon as one of them succeeds, or fail if none of them do.
        """
        for perm in self.perms:
            if getattr(perm, method_name)(user, obj):
                return True
        return False

        Private helper method to do the corresponding method calls on children permissions instances,
        and succeed as soon as one of them succeeds, or fail if none of them do.
        
Private helper method to do the corresponding method calls on children permissions instances,
and succeed as soon as one of them succeeds, or fail if none of them do.
Private helper method to do the corresponding method calls on children permissions instances and succeed as soon as one of them succeeds or fail if none of them do .
def _permissions_from_any(self, user, obj, method_name):
        for perm in self.perms:
            if getattr(perm, method_name)(user, obj):
                return True
        return False
def _permissions_from_any ( self , user , obj , method_name ) : for perm in self . perms : if getattr ( perm , method_name ) ( user , obj ) : return True return False
Private helper method to do the corresponding method calls on children permissions instances,
and succeed as soon as one of them succeeds, or fail if none of them do.
Private helper method to do the corresponding method calls on children permissions instances and succeed as soon as one of them succeeds or fail if none of them do .
"""
        Private helper method to do the corresponding method calls on children permissions instances,
        and succeed as soon as one of them succeeds, or fail if none of them do.
        """
self
user
obj
method_name