From cc3bc6345b0ce84a04b1c5217924be36cdef8047 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 23 Apr 2015 13:06:00 +0200 Subject: [PATCH] Only get encryption status when logged in This removes useless warnings in the logs. --- apps/encryption/js/encryption.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/encryption/js/encryption.js b/apps/encryption/js/encryption.js index 7ed49f7731..ea6a5596f2 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; }