Permission rethinking

* No detailed permissions due to django constraints on model-based permissions
* instead: logic controlled permission by group membership
* adds translations
This commit is contained in:
mipel
2021-07-02 09:45:45 +02:00
parent fa5387e814
commit c2a066fc71
3 changed files with 11 additions and 3 deletions

View File

@@ -7,6 +7,8 @@ Created on: 15.12.20
"""
from django.utils.translation import gettext_lazy as _
from konova.settings import DEFAULT_GROUP, ZB_GROUP, ETS_GROUP
TEST_ORGANISATION_DATA = [
{
"name": "Test_Official_1",
@@ -24,12 +26,12 @@ TEST_ORGANISATION_DATA = [
GROUPS_DATA = [
{
"name": _("Default"),
"name": DEFAULT_GROUP,
},
{
"name": _("Registration office"),
"name": ZB_GROUP,
},
{
"name": _("Conservation office"),
"name": ETS_GROUP,
},
]