From 2551ba4483be9e7bc41fd37d181f1cf44638ad01 Mon Sep 17 00:00:00 2001 From: brantje Date: Wed, 5 Oct 2016 23:26:31 +0200 Subject: [PATCH] Fix missing acl check --- js/app/controllers/credential.js | 3 ++- templates/views/show_vault.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/app/controllers/credential.js b/js/app/controllers/credential.js index 70105c47..1a4a7adb 100644 --- a/js/app/controllers/credential.js +++ b/js/app/controllers/credential.js @@ -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; } diff --git a/templates/views/show_vault.html b/templates/views/show_vault.html index cec1293d..9ef72260 100644 --- a/templates/views/show_vault.html +++ b/templates/views/show_vault.html @@ -74,7 +74,7 @@ - + {{ ::credential.label}}