Frontend loads sharing acl

This commit is contained in:
brantje 2016-10-04 15:14:31 +02:00
parent aca72a3a9d
commit 9a19e0c141
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F

View file

@ -109,8 +109,10 @@ angular.module('passmanApp')
userId: acl.user_id,
displayName: acl.user_id,
type: 'user',
acl: new SharingACL(acl.permissions)
acl: new SharingACL(acl.permissions),
acl_id: acl.acl_id
};
$scope.share_settings.credentialSharedWithUserAndGroup.push(obj);
}
@ -179,7 +181,7 @@ angular.module('passmanApp')
for (var i = 0; i < list.length; i++) {
var iterator = i; // Keeps it available inside the promises callback
if (list[i].type == "user") {
if (list[i].type == "user" && !list[i].hasOwnProperty('acl_id')) {
ShareService.getVaultsByUser(list[i].userId).then(function (data) {
$scope.share_settings.cypher_progress.total += data.length;