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:
@@ -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,
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user