diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-04-23 13:06:00 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-04-23 13:06:00 +0200 |
commit | cc3bc6345b0ce84a04b1c5217924be36cdef8047 (patch) | |
tree | e8b7841b077c106ea33807f651ee78b33e935094 /apps/encryption | |
parent | f8f354b351a349898bbb5cdf2d9bee1c798c0f73 (diff) | |
download | nextcloud-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.js | 2 |
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; } |