summaryrefslogtreecommitdiffstats
path: root/apps/encryption
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-04-23 13:06:00 +0200
committerVincent Petry <pvince81@owncloud.com>2015-04-23 13:06:00 +0200
commitcc3bc6345b0ce84a04b1c5217924be36cdef8047 (patch)
treee8b7841b077c106ea33807f651ee78b33e935094 /apps/encryption
parentf8f354b351a349898bbb5cdf2d9bee1c798c0f73 (diff)
downloadnextcloud-server-cc3bc6345b0ce84a04b1c5217924be36cdef8047.tar.gz
nextcloud-server-cc3bc6345b0ce84a04b1c5217924be36cdef8047.zip
Only get encryption status when logged in
This removes useless warnings in the logs.
Diffstat (limited to 'apps/encryption')
-rw-r--r--apps/encryption/js/encryption.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/encryption/js/encryption.js b/apps/encryption/js/encryption.js
index 7ed49f77311..ea6a5596f24 100644
--- a/apps/encryption/js/encryption.js
+++ b/apps/encryption/js/encryption.js
@@ -15,7 +15,7 @@ if (!OC.Encryption) {
*/
OC.Encryption = {
displayEncryptionWarning: function () {
- if (!OC.Notification.isHidden()) {
+ if (!OC.currentUser || !OC.Notification.isHidden()) {
return;
}