Merge pull request #15830 from owncloud/enc2-ajaxstatuswhenloggedin

Only get encryption status when logged in
This commit is contained in:
Thomas Müller 2015-04-23 14:41:06 +02:00
commit 8997d2f0d1
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;
}