code: def add_rules():
      
      rules.add_perm('user_tasks.view_usertaskstatus', STATUS_PERMISSION)
      rules.add_perm('user_tasks.cancel_usertaskstatus', STATUS_PERMISSION)
      rules.add_perm('user_tasks.change_usertaskstatus', rules.predicates.is_superuser)
      rules.add_perm('user_tasks.delete_usertaskstatus', STATUS_PERMISSION)
      rules.add_perm('user_tasks.view_usertaskartifact', ARTIFACT_PERMISSION)
      rules.add_perm('user_tasks.change_usertaskartifact', rules.predicates.is_superuser)
      rules.add_perm('user_tasks.delete_usertaskartifact', rules.predicates.is_superuser)
docs: Use the rules provided in this module to implement authorization checks for the ``django-user-tasks`` models.
  
      These rules allow only superusers and the user who triggered a task to view its status or artifacts, cancel the
      task, or delete the status information and all its related artifacts.  Only superusers are allowed to directly
      modify or delete an artifact (or to modify a task status record).