Information when the current user can't access a document

This commit is contained in:
jendib 2016-03-12 20:31:39 +01:00
parent ff91521a67
commit 78d4b5797b
2 changed files with 6 additions and 2 deletions

View File

@ -5,6 +5,10 @@
<span class="glyphicon glyphicon-warning-sign"></span> <span class="glyphicon glyphicon-warning-sign"></span>
Document not found Document not found
</p> </p>
<p class="text-center" ng-show="error.status == 403">
<span class="glyphicon glyphicon-warning-sign"></span>
Access forbidden
</p>
</div> </div>
<div ng-show="document"> <div ng-show="document">

View File

@ -20,8 +20,8 @@
Documents created by {{ user.username }} Documents created by {{ user.username }}
</a> </a>
</li> </li>
<li> <li ng-if="userInfo.base_functions.indexOf('ADMIN') != -1">
<a ng-href="#/settings/user/edit/{{ user.username }}" ng-if="userInfo.base_functions.indexOf('ADMIN') != -1"> <a ng-href="#/settings/user/edit/{{ user.username }}">
Edit {{ user.username}} user Edit {{ user.username}} user
</a> </a>
</li> </li>