Add support for user events
This commit is contained in:
parent
8df12a1774
commit
82d5bcc0ed
|
@ -110,13 +110,16 @@
|
|||
</li>
|
||||
% endif
|
||||
|
||||
% if request.has_any_perm('users.list', 'roles.list', 'emailprofiles.list', 'datasync.list', 'settings.list', 'upgrades.list'):
|
||||
% if request.has_any_perm('users.list', 'userevents.list', 'roles.list', 'emailprofiles.list', 'datasync.list', 'settings.list', 'upgrades.list'):
|
||||
<li>
|
||||
<a>Admin</a>
|
||||
<ul>
|
||||
% if request.has_perm('users.list'):
|
||||
<li>${h.link_to("Users", url('users'))}</li>
|
||||
% endif
|
||||
% if request.has_perm('userevents.list'):
|
||||
<li>${h.link_to("User Events", url('userevents'))}</li>
|
||||
% endif
|
||||
% if request.has_perm('roles.list'):
|
||||
<li>${h.link_to("Roles", url('roles'))}</li>
|
||||
% endif
|
||||
|
|
|
@ -22,3 +22,4 @@ class UsersView(base.UsersView):
|
|||
|
||||
def includeme(config):
|
||||
UsersView.defaults(config)
|
||||
base.UserEventsView.defaults(config)
|
||||
|
|
Loading…
Reference in a new issue