(self, permission, user=None, group=None)
Revoke permission for user/group on the object.

        Args:
            permission: Permission as string (read, write or delete)
            user: A user (Instance of timesketch.models.user.User)
            group: A group (Instance of timesketch.models.user.Group)
Revoke permission for user/group on the object.
Revoke permission for user / group on the object .
def revoke_permission(self, permission, user=None, group=None):
        """Revoke permission for user/group on the object.

        Args:
            permission: Permission as string (read, write or delete)
            user: A user (Instance of timesketch.models.user.User)
            group: A group (Instance of timesketch.models.user.Group)
        """
        # Revoke permission for a group.
        if group:
            group_ace = self._get_ace(permission=permission, group=group)
            if group_ace:
                for ace in group_ace:
                    self.acl.remove(ace)
                db_session.commit()
            return

        # Revoke permission for a user.
        user_ace = self._get_ace(permission=permission, user=user)
        if user_ace:
            for ace in user_ace:
                self.acl.remove(ace)
            db_session.commit()
def revoke_permission ( self , permission , user = None , group = None ) : # Revoke permission for a group. if group : group_ace = self . _get_ace ( permission = permission , group = group ) if group_ace : for ace in group_ace : self . acl . remove ( ace ) db_session . commit ( ) return # Revoke permission for a user. user_ace = self . _get_ace ( permission = permission , user = user ) if user_ace : for ace in user_ace : self . acl . remove ( ace ) db_session . commit ( )