]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only get encryption status when logged in
authorVincent Petry <pvince81@owncloud.com>
Thu, 23 Apr 2015 11:06:00 +0000 (13:06 +0200)
committerVincent Petry <pvince81@owncloud.com>
Thu, 23 Apr 2015 11:06:00 +0000 (13:06 +0200)
This removes useless warnings in the logs.

apps/encryption/js/encryption.js

index 7ed49f77311be426fef24c8c7e63057bdc36d569..ea6a5596f24476c886f169efa82a80354a61a463 100644 (file)
@@ -15,7 +15,7 @@ if (!OC.Encryption) {
  */
 OC.Encryption = {
        displayEncryptionWarning: function () {
-               if (!OC.Notification.isHidden()) {
+               if (!OC.currentUser || !OC.Notification.isHidden()) {
                        return;
                }