Format file

This commit is contained in:
brantje 2016-10-03 17:53:49 +02:00
parent b90d6eb0c3
commit a10c567b1f
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F

View file

@ -9,7 +9,8 @@
* This file is part of passman, licensed under AGPLv3
*/
angular.module('passmanApp')
.controller('ShareCtrl', ['$scope', 'VaultService', 'CredentialService', 'SettingsService', '$location', '$routeParams', 'ShareService', 'NotificationService', function ($scope, VaultService, CredentialService, SettingsService, $location, $routeParams, ShareService, NotificationService) {
.controller('ShareCtrl', ['$scope', 'VaultService', 'CredentialService', 'SettingsService', '$location', '$routeParams', 'ShareService', 'NotificationService', 'SharingACL',
function ($scope, VaultService, CredentialService, SettingsService, $location, $routeParams, ShareService, NotificationService, SharingACL) {
$scope.active_vault = VaultService.getActiveVault();
$scope.tabs = [{
@ -69,9 +70,7 @@ angular.module('passmanApp')
amount: null
}
},
credentialSharedWithUserAndGroup:[
],
credentialSharedWithUserAndGroup: [],
cypher_progress: {
done: 0,
total: 0
@ -88,7 +87,7 @@ angular.module('passmanApp')
value: '1'
}
];
console.log(SharingACL);
$scope.inputSharedWith = [];
$scope.selectedAccessLevel = '1';
@ -101,7 +100,7 @@ angular.module('passmanApp')
$scope.inputSharedWith = [];
if (shareWith.length > 0) {
for (var i = 0; i < shareWith.length; i++) {
// Avoid adding twice the same user.
var obj = {
userId: shareWith[i].uid,
displayName: shareWith[i].text,