Browse Source

publish muk_security - 12.0

pull/9/head
MuK IT GmbH 6 years ago
parent
commit
3e2fe7b72a
  1. 2
      muk_security/__manifest__.py
  2. 7
      muk_security/models/mixins_access_groups.py

2
muk_security/__manifest__.py

@ -20,7 +20,7 @@
{
"name": "MuK Security",
"summary": """Security Features""",
"version": "12.0.1.5.1",
"version": "12.0.1.5.2",
"category": "Extra Tools",
"license": "AGPL-3",
"website": "http://www.mukit.at",

7
muk_security/models/mixins_access_groups.py

@ -38,6 +38,9 @@ class AccessGroupsModel(models.AbstractModel):
# If set the group fields are restricted by the access group
_access_groups_fields = None
# If set the group fields are recomputed as super administrator
_access_groups_sudo = False
# Set it to True to enforced security even if no group has been set
_access_groups_strict = False
@ -70,9 +73,11 @@ class AccessGroupsModel(models.AbstractModel):
column1='aid',
column2='gid',
string="Complete Groups",
compute='_compute_groups',
compute='_compute_groups',
readonly=True,
store=True,
automatic=True,
compute_sudo=self._access_groups_sudo,
groups=self._access_groups_fields))
#----------------------------------------------------------

Loading…
Cancel
Save