From 92e3527552cdb27cd1854625d0cb88d64a982668 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 7 Dec 2021 09:06:18 +0530 Subject: [PATCH] leave a note to fix an unhandled case with read-only shared folders for guests --- www/common/drive-ui.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index da3811c0c..6fbc381b7 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -3908,6 +3908,7 @@ define([ } if (APP.readOnly && !APP.loggedIn) { + // XXX this incorrectly prompts guests to login/register even when they lack editing rights. (function () { var $banner = $(Pages.setHTML(h('div.cp-app-drive-content-info-box'), Messages.fm_info_sharedFolder)); $banner.find('[href="/login/"], [href="/register/"]').click(function (ev) {