mirror of
https://github.com/nextcloud/passman.git
synced 2024-12-27 01:52:56 +08:00
Frontend loads sharing acl
This commit is contained in:
parent
aca72a3a9d
commit
9a19e0c141
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue