diff --git a/js/app/controllers/share.js b/js/app/controllers/share.js
index 0d9e166f..861020ed 100644
--- a/js/app/controllers/share.js
+++ b/js/app/controllers/share.js
@@ -216,7 +216,7 @@
};
var found = false;
for (var z = 0; z < $scope.share_settings.credentialSharedWithUserAndGroup.length; z++) {
- if ($scope.share_settings.credentialSharedWithUserAndGroup[z].userId === shareWith[z].uid) {
+ if (shareWith[z] && $scope.share_settings.credentialSharedWithUserAndGroup[z].userId === shareWith[z].uid) {
found = true;
}
}
diff --git a/js/templates.js b/js/templates.js
index f97e8d4b..67d6c2e1 100644
--- a/js/templates.js
+++ b/js/templates.js
@@ -57,7 +57,7 @@ angular.module('views/partials/forms/settings/export.html', []).run(['$templateC
angular.module('views/partials/forms/settings/general_settings.html', []).run(['$templateCache', function ($templateCache) {
'use strict';
$templateCache.put('views/partials/forms/settings/general_settings.html',
- '
{{ \'about.passman\' | translate}}
{{ \'version\' | translate}}: {{passman_version}}
{{ \'donate.support\' | translate}}
{{ \'bookmarklet\' | translate}}
{{ \'bookmarklet.info1\' | translate}}
{{ \'bookmarklet.info2\' | translate}}
');
+ '{{ \'about.passman\' | translate}}
{{ \'version\' | translate}}: {{passman_version}}
{{ \'donate.support\' | translate}}
{{ \'bookmarklet\' | translate}}
{{ \'bookmarklet.info1\' | translate}}
{{ \'bookmarklet.info2\' | translate}}
');
}]);
angular.module('views/partials/forms/settings/generic_csv_import.html', []).run(['$templateCache', function ($templateCache) {
@@ -87,13 +87,13 @@ angular.module('views/partials/forms/settings/sharing.html', []).run(['$template
angular.module('views/partials/forms/settings/tool.html', []).run(['$templateCache', function ($templateCache) {
'use strict';
$templateCache.put('views/partials/forms/settings/tool.html',
- '{{ \'scan.result.msg\' | translate}}
{{ \'label\' | translate}} | {{ \'score\' | translate}} | {{ \'password\' | translate}} | {{ \'action\' | translate}} |
{{result.label}} | | | |
');
+ '{{ \'scan.result.msg\' | translate}}
{{ \'label\' | translate}} | {{ \'score\' | translate}} | {{ \'password\' | translate}} | {{ \'action\' | translate}} |
{{result.label}} | | | |
');
}]);
angular.module('views/partials/forms/share_credential/basics.html', []).run(['$templateCache', function ($templateCache) {
'use strict';
$templateCache.put('views/partials/forms/share_credential/basics.html',
- ' | |
{{ \'search.result.missing\' | translate}} |
{{\'cyphering\' | translate}}...
{{ \'uploading\' | translate}}...
{{ \'user\' | translate}} | {{ \'crypto.time\' | translate}} |
{{user.user}} | {{user.time}} s |
{{ \'crypto.total.time\' | translate}}: {{ calculate_total_time() }}
');
}]);
@@ -126,7 +126,7 @@ angular.module('views/show_vault.html', []).run(['$templateCache', function ($te
'use strict';
$templateCache.put('views/show_vault.html',
'{{ ::tag.text}} {{ ::credential.label}} |
');
+ ' (settings.user_sharing_enabled === 1 || settings.user_sharing_enabled === \'1\' || settings.link_sharing_enabled === 1 || settings.link_sharing_enabled === \'1\')"> {{ \'share\' | translate}} ');
}]);
angular.module('views/vault_req_deletion.html', []).run(['$templateCache', function ($templateCache) {
diff --git a/templates/views/partials/forms/settings/general_settings.html b/templates/views/partials/forms/settings/general_settings.html
index d5885470..9792e5ec 100644
--- a/templates/views/partials/forms/settings/general_settings.html
+++ b/templates/views/partials/forms/settings/general_settings.html
@@ -12,8 +12,7 @@
-
+
diff --git a/templates/views/partials/forms/share_credential/basics.html b/templates/views/partials/forms/share_credential/basics.html
index f3142d25..8774998d 100644
--- a/templates/views/partials/forms/share_credential/basics.html
+++ b/templates/views/partials/forms/share_credential/basics.html
@@ -17,7 +17,7 @@
|