Add support for user events
This commit is contained in:
parent
8df12a1774
commit
82d5bcc0ed
|
@ -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
|
||||||
|
|
|
@ -22,3 +22,4 @@ class UsersView(base.UsersView):
|
||||||
|
|
||||||
def includeme(config):
|
def includeme(config):
|
||||||
UsersView.defaults(config)
|
UsersView.defaults(config)
|
||||||
|
base.UserEventsView.defaults(config)
|
||||||
|
|
Loading…
Reference in a new issue