Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mattia Rizzolo
nm.debian.org
Commits
5d540c27
Commit
5d540c27
authored
Apr 20, 2020
by
Enrico Zini
Browse files
Added new identities list to person's menu. refs:
#2
parent
29b942ce
Changes
1
Show whitespace changes
Inline
Side-by-side
backend/mixins.py
View file @
5d540c27
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment