Commit 5d540c27 authored by Enrico Zini's avatar Enrico Zini
Browse files

Added new identities list to person's menu. refs: #2

parent 29b942ce
...@@ -135,6 +135,10 @@ class VisitPersonMixin(VisitorMixin): ...@@ -135,6 +135,10 @@ class VisitPersonMixin(VisitorMixin):
if self.person.is_am: if self.person.is_am:
res.append(NavLink( res.append(NavLink(
reverse("person_amprofile", kwargs={"key": self.person.lookup_key}), _("AM Profile"), "gear")) reverse("person_amprofile", kwargs={"key": self.person.lookup_key}), _("AM Profile"), "gear"))
if "view_person_audit_log" in self.visit_perms:
res.append(NavLink(
reverse("signon_identities_person", kwargs={
"key": self.person.lookup_key}), _("Logins"), "sign-in"))
return res return res
def get_visit_perms(self): def get_visit_perms(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment