Fix missing acl check

This commit is contained in:
brantje 2016-10-05 23:26:31 +02:00
parent 0069844147
commit 2551ba4483
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F
2 changed files with 3 additions and 2 deletions

View file

@ -126,7 +126,8 @@ angular.module('passmanApp')
$scope.hasPermission = function (acl, permission) {
if (acl) {
return acl.hasPermission(permission);
var tmp = new SharingACL(acl.permission);
return tmp.hasPermission(permission);
} else {
return true;
}

View file

@ -74,7 +74,7 @@
<span class="icon">
<i class="fa fa-lock" ng-if="!credential.acl && !credential.shared_key"></i>
<i class="fa fa-share-alt" ng-if="credential.acl"></i>
<i class="fa fa-share-alt-square" ng-if="credential.shared_key"></i>
<i class="fa fa-share-alt-square" ng-if="credential.shared_key"> </i>
</span>
<span class="label">{{ ::credential.label}}</span>
<span class="tags">