mirror of
https://github.com/nextcloud/passman.git
synced 2025-01-08 00:10:08 +08:00
Fix missing acl check
This commit is contained in:
parent
0069844147
commit
2551ba4483
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue