Skip to content

Commit

Permalink
Merge pull request #1569 from privacyidea/1497/no-links-in-audit-for-…
Browse files Browse the repository at this point in the history
…users

Do not display links to realms and resolvers
  • Loading branch information
tamaro-skaljic committed Apr 15, 2019
2 parents 5e43b23 + 367e0c0 commit 1616a87
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions privacyidea/static/components/audit/views/audit.log.html
Expand Up @@ -62,7 +62,7 @@
<pi-filter ng-model="resolverFilter"
ng-change="getAuditList()">
</th>
<th class="pifilter"><translate>policies</translate>
<th class="pifilter" ng-if="loggedInUser.role == 'admin'"><translate>policies</translate>
<pi-filter ng-model="policiesFilter"
ng-change="getAuditList()">
</th>
Expand Down Expand Up @@ -101,10 +101,14 @@
<td><a ui-sref="user.details({username:audit.user,
realmname:audit.realm})">
{{ audit.user }}</a></td>
<td><a ui-sref="config.realms.list">{{ audit.realm }}</a></td>
<td><a ui-sref="config.resolvers.list">
{{ audit.resolver }}</a></td>
<td><span ng-repeat="policy in audit.policies">
<td><a ng-if="loggedInUser.role == 'admin'" ui-sref="config.realms.list">{{ audit.realm }}</a>
<span ng-if="loggedInUser.role == 'user'">{{ audit.realm }}</span>
</td>
<td><a ng-if="loggedInUser.role == 'admin'" ui-sref="config.resolvers.list">{{ audit.resolver }}</a>
<span ng-if="loggedInUser.role == 'user'">{{ audit.resolver }}</span>
</td>
<td ng-if="loggedInUser.role == 'admin'">
<span ng-repeat="policy in audit.policies">
<span ng-if="policy.endsWith('+')">
{{ policy }}
</span>
Expand Down

0 comments on commit 1616a87

Please sign in to comment.