mirror of
https://github.com/nextcloud/passman.git
synced 2025-11-09 21:51:36 +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,
|
userId: acl.user_id,
|
||||||
displayName: acl.user_id,
|
displayName: acl.user_id,
|
||||||
type: 'user',
|
type: 'user',
|
||||||
acl: new SharingACL(acl.permissions)
|
acl: new SharingACL(acl.permissions),
|
||||||
|
acl_id: acl.acl_id
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.share_settings.credentialSharedWithUserAndGroup.push(obj);
|
$scope.share_settings.credentialSharedWithUserAndGroup.push(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -179,7 +181,7 @@ angular.module('passmanApp')
|
||||||
for (var i = 0; i < list.length; i++) {
|
for (var i = 0; i < list.length; i++) {
|
||||||
var iterator = i; // Keeps it available inside the promises callback
|
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) {
|
ShareService.getVaultsByUser(list[i].userId).then(function (data) {
|
||||||
$scope.share_settings.cypher_progress.total += data.length;
|
$scope.share_settings.cypher_progress.total += data.length;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue