1969416e64
Also added the derective osPerms to check if the current user has permissions. Removed old Django views and urls for user. Created utils.views.APIView which should be used instead of the AjaxView. Fixes: #1470 Fixes: #1454
11 lines
429 B
HTML
11 lines
429 B
HTML
<ul>
|
|
<li ng-repeat="user in users">
|
|
<a ui-sref="users.user.detail({id: user.id })">{{ user.get_short_name() }}</a>
|
|
<a ui-sref="users.user.detail.update({id: user.id })">{{ gettext('Edit') }}</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<a os-perms="users.can_manage" ui-sref="users.user.create">{{ gettext('New') }}</a>
|
|
<span os-perms="!users.can_manage">No Permission to create</span>
|
|
<a href="/users/print/" target="_self">PDF</a>
|