X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3193141f55df20910cf8ba35f9e669d79c90d3f4..30da6af1f8550bbf8c52a21e5741661a15da8663:/apps/api/models.py diff --git a/apps/api/models.py b/apps/api/models.py index 90f962e0..82525898 100644 --- a/apps/api/models.py +++ b/apps/api/models.py @@ -59,7 +59,7 @@ class PullRequest(models.Model): class Meta: permissions = ( - ("pullrequest.can_view", "Can view pull request's contents."), + ("view_prq", "Can view pull request's contents."), ) @@ -68,6 +68,6 @@ class PullRequest(models.Model): class Document(models.Model): class Meta: permissions = ( - ("document.can_share", "Can share documents without pull requests."), - ("document.can_view_other", "Can view other's documents."), + ("share_document", "Can share documents without pull requests."), + ("view_other_document", "Can view other's documents."), ) \ No newline at end of file