mirror of
https://github.com/nextcloud/passman.git
synced 2024-12-27 18:35:07 +08:00
Small fix adding users to shared list
This commit is contained in:
parent
ca590057b5
commit
69c303552b
1 changed files with 7 additions and 1 deletions
|
@ -170,7 +170,13 @@ angular.module('passmanApp')
|
|||
pending: true,
|
||||
credential_guid: $scope.storedCredential.guid
|
||||
};
|
||||
if ($scope.share_settings.credentialSharedWithUserAndGroup.indexOf(obj) === -1) {
|
||||
var found = false;
|
||||
for(var z = 0; z < $scope.share_settings.credentialSharedWithUserAndGroup.length; z++){
|
||||
if($scope.share_settings.credentialSharedWithUserAndGroup[z].userId == shareWith[z].uid){
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
if (found === false) {
|
||||
$scope.share_settings.credentialSharedWithUserAndGroup.push(obj)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue