Add support for user events

This commit is contained in:
Lance Edgar 2017-08-13 23:12:38 -05:00
parent 8df12a1774
commit 82d5bcc0ed
2 changed files with 5 additions and 1 deletions

View file

@ -110,13 +110,16 @@
</li> </li>
% endif % 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> <li>
<a>Admin</a> <a>Admin</a>
<ul> <ul>
% if request.has_perm('users.list'): % if request.has_perm('users.list'):
<li>${h.link_to("Users", url('users'))}</li> <li>${h.link_to("Users", url('users'))}</li>
% endif % endif
% if request.has_perm('userevents.list'):
<li>${h.link_to("User Events", url('userevents'))}</li>
% endif
% if request.has_perm('roles.list'): % if request.has_perm('roles.list'):
<li>${h.link_to("Roles", url('roles'))}</li> <li>${h.link_to("Roles", url('roles'))}</li>
% endif % endif

View file

@ -22,3 +22,4 @@ class UsersView(base.UsersView):
def includeme(config): def includeme(config):
UsersView.defaults(config) UsersView.defaults(config)
base.UserEventsView.defaults(config)