From: Vincent Petry Date: Thu, 23 Apr 2015 11:06:00 +0000 (+0200) Subject: Only get encryption status when logged in X-Git-Tag: v8.1.0beta1~109^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cc3bc6345b0ce84a04b1c5217924be36cdef8047;p=nextcloud-server.git Only get encryption status when logged in This removes useless warnings in the logs. --- 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; }