summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 74d81281d..c46aad6c1 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -2914,13 +2914,13 @@ class Person(Address, Merge, OwnPerms, ValueGetter, MainItem):
def get_extra_actions(self, request):
actions = super(Person, self).get_extra_actions(request)
- can_create_person = self.can_do(request, "change_person")
- if not can_create_person:
+ # for admin only
+ if not request.user.is_staff:
return actions
actions += [
(
- reverse("account_management", args=[self.pk]),
- _("Create new account"),
+ reverse("account-manage", args=[self.pk]),
+ _("Manage account"),
"fa fa-user",
"",
"",