digitalfabrik/integreat-cms

View on GitHub
integreat_cms/cms/fixtures/test_roles.json

Summary

Maintainability
Test Coverage
[
  {
    "model": "auth.group",
    "pk": 1,
    "fields": {
      "name": "MANAGEMENT",
      "permissions": [
        ["change_chatmessage", "cms", "chatmessage"],
        ["add_directory", "cms", "directory"],
        ["change_directory", "cms", "directory"],
        ["delete_directory", "cms", "directory"],
        ["view_directory", "cms", "directory"],
        ["change_event", "cms", "event"],
        ["publish_event", "cms", "event"],
        ["view_event", "cms", "event"],
        ["change_feedback", "cms", "feedback"],
        ["delete_feedback", "cms", "feedback"],
        ["view_feedback", "cms", "feedback"],
        ["change_imprintpage", "cms", "imprintpage"],
        ["view_imprintpage", "cms", "imprintpage"],
        ["change_mediafile", "cms", "mediafile"],
        ["delete_mediafile", "cms", "mediafile"],
        ["replace_mediafile", "cms", "mediafile"],
        ["upload_mediafile", "cms", "mediafile"],
        ["view_mediafile", "cms", "mediafile"],
        ["change_organization", "cms", "organization"],
        ["delete_organization", "cms", "organization"],
        ["view_organization", "cms", "organization"],
        ["change_page", "cms", "page"],
        ["grant_page_permissions", "cms", "page"],
        ["publish_page", "cms", "page"],
        ["view_page", "cms", "page"],
        ["change_poi", "cms", "poi"],
        ["view_poi", "cms", "poi"],
        ["change_pushnotification", "cms", "pushnotification"],
        ["send_push_notification", "cms", "pushnotification"],
        ["view_pushnotification", "cms", "pushnotification"],
        ["change_user", "cms", "user"],
        ["manage_translations", "cms", "user"],
        ["view_broken_links", "cms", "user"],
        ["view_statistics", "cms", "user"],
        ["view_translation_report", "cms", "user"],
        ["view_user", "cms", "user"]
      ]
    }
  },
  {
    "model": "auth.group",
    "pk": 2,
    "fields": {
      "name": "EDITOR",
      "permissions": [
        ["add_directory", "cms", "directory"],
        ["change_directory", "cms", "directory"],
        ["view_directory", "cms", "directory"],
        ["change_event", "cms", "event"],
        ["publish_event", "cms", "event"],
        ["view_event", "cms", "event"],
        ["change_mediafile", "cms", "mediafile"],
        ["replace_mediafile", "cms", "mediafile"],
        ["upload_mediafile", "cms", "mediafile"],
        ["view_mediafile", "cms", "mediafile"],
        ["change_page", "cms", "page"],
        ["publish_page", "cms", "page"],
        ["view_page", "cms", "page"],
        ["change_poi", "cms", "poi"],
        ["view_poi", "cms", "poi"],
        ["view_broken_links", "cms", "user"],
        ["view_translation_report", "cms", "user"]
      ]
    }
  },
  {
    "model": "auth.group",
    "pk": 3,
    "fields": {
      "name": "EVENT_MANAGER",
      "permissions": [
        ["add_directory", "cms", "directory"],
        ["change_directory", "cms", "directory"],
        ["view_directory", "cms", "directory"],
        ["change_event", "cms", "event"],
        ["publish_event", "cms", "event"],
        ["view_event", "cms", "event"],
        ["change_mediafile", "cms", "mediafile"],
        ["replace_mediafile", "cms", "mediafile"],
        ["upload_mediafile", "cms", "mediafile"],
        ["view_mediafile", "cms", "mediafile"],
        ["change_poi", "cms", "poi"],
        ["view_poi", "cms", "poi"]
      ]
    }
  },
  {
    "model": "auth.group",
    "pk": 4,
    "fields": {
      "name": "SERVICE_TEAM",
      "permissions": [
        ["change_chatmessage", "cms", "chatmessage"],
        ["delete_chatmessage", "cms", "chatmessage"],
        ["add_directory", "cms", "directory"],
        ["change_directory", "cms", "directory"],
        ["delete_directory", "cms", "directory"],
        ["view_directory", "cms", "directory"],
        ["change_event", "cms", "event"],
        ["delete_event", "cms", "event"],
        ["publish_event", "cms", "event"],
        ["view_event", "cms", "event"],
        ["change_feedback", "cms", "feedback"],
        ["delete_feedback", "cms", "feedback"],
        ["view_feedback", "cms", "feedback"],
        ["change_imprintpage", "cms", "imprintpage"],
        ["delete_imprintpage", "cms", "imprintpage"],
        ["view_imprintpage", "cms", "imprintpage"],
        ["change_language", "cms", "language"],
        ["view_language", "cms", "language"],
        ["change_languagetreenode", "cms", "languagetreenode"],
        ["delete_languagetreenode", "cms", "languagetreenode"],
        ["view_languagetreenode", "cms", "languagetreenode"],
        ["change_mediafile", "cms", "mediafile"],
        ["delete_mediafile", "cms", "mediafile"],
        ["replace_mediafile", "cms", "mediafile"],
        ["upload_mediafile", "cms", "mediafile"],
        ["view_mediafile", "cms", "mediafile"],
        ["change_offertemplate", "cms", "offertemplate"],
        ["delete_offertemplate", "cms", "offertemplate"],
        ["view_offertemplate", "cms", "offertemplate"],
        ["change_organization", "cms", "organization"],
        ["delete_organization", "cms", "organization"],
        ["view_organization", "cms", "organization"],
        ["change_page", "cms", "page"],
        ["delete_page", "cms", "page"],
        ["grant_page_permissions", "cms", "page"],
        ["publish_page", "cms", "page"],
        ["view_page", "cms", "page"],
        ["change_poi", "cms", "poi"],
        ["delete_poi", "cms", "poi"],
        ["view_poi", "cms", "poi"],
        ["change_poicategory", "cms", "poicategory"],
        ["delete_poicategory", "cms", "poicategory"],
        ["view_poicategory", "cms", "poicategory"],
        ["change_pushnotification", "cms", "pushnotification"],
        ["delete_pushnotification", "cms", "pushnotification"],
        ["send_push_notification", "cms", "pushnotification"],
        ["view_pushnotification", "cms", "pushnotification"],
        ["change_region", "cms", "region"],
        ["delete_region", "cms", "region"],
        ["view_region", "cms", "region"],
        ["change_user", "cms", "user"],
        ["delete_user", "cms", "user"],
        ["manage_translations", "cms", "user"],
        ["view_broken_links", "cms", "user"],
        ["view_statistics", "cms", "user"],
        ["view_translation_report", "cms", "user"],
        ["view_user", "cms", "user"]
      ]
    }
  },
  {
    "model": "auth.group",
    "pk": 5,
    "fields": {
      "name": "CMS_TEAM",
      "permissions": [
        ["change_chatmessage", "cms", "chatmessage"],
        ["delete_chatmessage", "cms", "chatmessage"],
        ["add_directory", "cms", "directory"],
        ["change_directory", "cms", "directory"],
        ["delete_directory", "cms", "directory"],
        ["view_directory", "cms", "directory"],
        ["change_event", "cms", "event"],
        ["delete_event", "cms", "event"],
        ["publish_event", "cms", "event"],
        ["view_event", "cms", "event"],
        ["change_feedback", "cms", "feedback"],
        ["delete_feedback", "cms", "feedback"],
        ["view_feedback", "cms", "feedback"],
        ["change_imprintpage", "cms", "imprintpage"],
        ["delete_imprintpage", "cms", "imprintpage"],
        ["view_imprintpage", "cms", "imprintpage"],
        ["change_language", "cms", "language"],
        ["view_language", "cms", "language"],
        ["change_languagetreenode", "cms", "languagetreenode"],
        ["delete_languagetreenode", "cms", "languagetreenode"],
        ["view_languagetreenode", "cms", "languagetreenode"],
        ["change_mediafile", "cms", "mediafile"],
        ["delete_mediafile", "cms", "mediafile"],
        ["replace_mediafile", "cms", "mediafile"],
        ["upload_mediafile", "cms", "mediafile"],
        ["view_mediafile", "cms", "mediafile"],
        ["change_offertemplate", "cms", "offertemplate"],
        ["delete_offertemplate", "cms", "offertemplate"],
        ["view_offertemplate", "cms", "offertemplate"],
        ["change_organization", "cms", "organization"],
        ["delete_organization", "cms", "organization"],
        ["view_organization", "cms", "organization"],
        ["change_page", "cms", "page"],
        ["delete_page", "cms", "page"],
        ["grant_page_permissions", "cms", "page"],
        ["publish_page", "cms", "page"],
        ["view_page", "cms", "page"],
        ["change_poi", "cms", "poi"],
        ["delete_poi", "cms", "poi"],
        ["view_poi", "cms", "poi"],
        ["change_poicategory", "cms", "poicategory"],
        ["delete_poicategory", "cms", "poicategory"],
        ["view_poicategory", "cms", "poicategory"],
        ["change_pushnotification", "cms", "pushnotification"],
        ["delete_pushnotification", "cms", "pushnotification"],
        ["send_push_notification", "cms", "pushnotification"],
        ["view_pushnotification", "cms", "pushnotification"],
        ["change_region", "cms", "region"],
        ["delete_region", "cms", "region"],
        ["view_region", "cms", "region"],
        ["change_user", "cms", "user"],
        ["delete_user", "cms", "user"],
        ["manage_translations", "cms", "user"],
        ["view_broken_links", "cms", "user"],
        ["view_statistics", "cms", "user"],
        ["view_translation_report", "cms", "user"],
        ["view_user", "cms", "user"]
      ]
    }
  },
  {
    "model": "auth.group",
    "pk": 6,
    "fields": {
      "name": "APP_TEAM",
      "permissions": [
        ["change_chatmessage", "cms", "chatmessage"],
        ["add_directory", "cms", "directory"],
        ["change_directory", "cms", "directory"],
        ["view_directory", "cms", "directory"],
        ["change_event", "cms", "event"],
        ["publish_event", "cms", "event"],
        ["view_event", "cms", "event"],
        ["change_feedback", "cms", "feedback"],
        ["view_feedback", "cms", "feedback"],
        ["change_imprintpage", "cms", "imprintpage"],
        ["view_imprintpage", "cms", "imprintpage"],
        ["view_language", "cms", "language"],
        ["view_languagetreenode", "cms", "languagetreenode"],
        ["change_mediafile", "cms", "mediafile"],
        ["delete_mediafile", "cms", "mediafile"],
        ["replace_mediafile", "cms", "mediafile"],
        ["upload_mediafile", "cms", "mediafile"],
        ["view_mediafile", "cms", "mediafile"],
        ["view_offertemplate", "cms", "offertemplate"],
        ["view_organization", "cms", "organization"],
        ["change_page", "cms", "page"],
        ["publish_page", "cms", "page"],
        ["view_page", "cms", "page"],
        ["change_poi", "cms", "poi"],
        ["view_poi", "cms", "poi"],
        ["view_poicategory", "cms", "poicategory"],
        ["change_pushnotification", "cms", "pushnotification"],
        ["send_push_notification", "cms", "pushnotification"],
        ["view_pushnotification", "cms", "pushnotification"],
        ["change_region", "cms", "region"],
        ["view_region", "cms", "region"],
        ["view_broken_links", "cms", "user"],
        ["view_statistics", "cms", "user"],
        ["view_translation_report", "cms", "user"],
        ["view_user", "cms", "user"]
      ]
    }
  },
  {
    "model": "auth.group",
    "pk": 7,
    "fields": {
      "name": "MARKETING_TEAM",
      "permissions": [
        ["change_chatmessage", "cms", "chatmessage"],
        ["view_directory", "cms", "directory"],
        ["view_event", "cms", "event"],
        ["view_feedback", "cms", "feedback"],
        ["view_imprintpage", "cms", "imprintpage"],
        ["view_language", "cms", "language"],
        ["view_languagetreenode", "cms", "languagetreenode"],
        ["view_mediafile", "cms", "mediafile"],
        ["view_offertemplate", "cms", "offertemplate"],
        ["view_organization", "cms", "organization"],
        ["view_page", "cms", "page"],
        ["view_poi", "cms", "poi"],
        ["view_poicategory", "cms", "poicategory"],
        ["view_pushnotification", "cms", "pushnotification"],
        ["view_region", "cms", "region"],
        ["view_broken_links", "cms", "user"],
        ["view_statistics", "cms", "user"],
        ["view_translation_report", "cms", "user"],
        ["view_user", "cms", "user"]
      ]
    }
  },
  {
    "model": "auth.group",
    "pk": 8,
    "fields": {
      "name": "AUTHOR",
      "permissions": [
        ["add_directory", "cms", "directory"],
        ["change_directory", "cms", "directory"],
        ["view_directory", "cms", "directory"],
        ["change_event", "cms", "event"],
        ["publish_event", "cms", "event"],
        ["view_event", "cms", "event"],
        ["change_mediafile", "cms", "mediafile"],
        ["replace_mediafile", "cms", "mediafile"],
        ["upload_mediafile", "cms", "mediafile"],
        ["view_mediafile", "cms", "mediafile"],
        ["change_page", "cms", "page"],
        ["view_page", "cms", "page"],
        ["change_poi", "cms", "poi"],
        ["view_poi", "cms", "poi"]
      ]
    }
  },
  {
    "model": "auth.group",
    "pk": 9,
    "fields": {
      "name": "OBSERVER",
      "permissions": [
        ["add_directory", "cms", "directory"],
        ["change_directory", "cms", "directory"],
        ["view_directory", "cms", "directory"],
        ["view_event", "cms", "event"],
        ["change_mediafile", "cms", "mediafile"],
        ["upload_mediafile", "cms", "mediafile"],
        ["view_mediafile", "cms", "mediafile"],
        ["view_page", "cms", "page"],
        ["view_poi", "cms", "poi"]
      ]
    }
  },
  { "model": "cms.role", "pk": 1, "fields": { "name": "MANAGEMENT", "group": ["MANAGEMENT"], "staff_role": false } },
  { "model": "cms.role", "pk": 2, "fields": { "name": "EDITOR", "group": ["EDITOR"], "staff_role": false } },
  {
    "model": "cms.role",
    "pk": 3,
    "fields": { "name": "EVENT_MANAGER", "group": ["EVENT_MANAGER"], "staff_role": false }
  },
  { "model": "cms.role", "pk": 4, "fields": { "name": "SERVICE_TEAM", "group": ["SERVICE_TEAM"], "staff_role": true } },
  { "model": "cms.role", "pk": 5, "fields": { "name": "CMS_TEAM", "group": ["CMS_TEAM"], "staff_role": true } },
  { "model": "cms.role", "pk": 6, "fields": { "name": "APP_TEAM", "group": ["APP_TEAM"], "staff_role": true } },
  {
    "model": "cms.role",
    "pk": 7,
    "fields": { "name": "MARKETING_TEAM", "group": ["MARKETING_TEAM"], "staff_role": true }
  },
  { "model": "cms.role", "pk": 8, "fields": { "name": "AUTHOR", "group": ["AUTHOR"], "staff_role": false } },
  { "model": "cms.role", "pk": 9, "fields": { "name": "OBSERVER", "group": ["OBSERVER"], "staff_role": false } }
]