diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-11-19 16:13:19 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-11-19 16:13:58 +0100 |
commit | db25107472bd2699a6102df10176c383a5cac257 (patch) | |
tree | 1ce516121be9c1bf195f5734fb22fb3330e31b92 | |
parent | 7e453d07878f354e63605bd4351f0484b3548f11 (diff) | |
download | Ishtar-db25107472bd2699a6102df10176c383a5cac257.tar.bz2 Ishtar-db25107472bd2699a6102df10176c383a5cac257.zip |
Fix edit button on sheet for own permissions (refs #4332)
-rw-r--r-- | archaeological_finds/models_finds.py | 2 | ||||
-rw-r--r-- | ishtar_common/models.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 0aa098f6f..e53ad6e6d 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -1169,7 +1169,7 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, OwnPerms, """ # url, base_text, icon, extra_text, extra css class, is a quick action - # no particular rights: if you can view an itm you can add it to your + # no particular rights: if you can view an item you can add it to your # own basket actions = super(Find, self).get_extra_actions(request) diff --git a/ishtar_common/models.py b/ishtar_common/models.py index a1415c8e0..1aa94836f 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -247,7 +247,7 @@ class OwnPerms(object): :return: boolean """ splited = action_name.split('_') - action_own_name = splited[0] + '_' + '_'.join(splited[1:]) + action_own_name = splited[0] + '_own_' + '_'.join(splited[1:]) return request.user.ishtaruser.has_right( action_name, request.session) or \ (request.user.ishtaruser.has_right( |