Only get encryption status when logged in

This removes useless warnings in the logs.
remotes/origin/poc-doctrine-migrations
Vincent Petry 11 years ago
parent f8f354b351
commit cc3bc6345b
  1. 2
      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;
}

Loading…
Cancel
Save