Only get encryption status when logged in

This removes useless warnings in the logs.
This commit is contained in:
Vincent Petry 2015-04-23 13:06:00 +02:00
parent f8f354b351
commit cc3bc6345b
1 changed files with 1 additions and 1 deletions

View File

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