New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to disable the automatic updater #457
Conversation
Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add an entry here for documentation: https://github.com/phpList/phplist3/blob/master/public_html/lists/config/config_extended.php
Once the PR is merged please add an entry here for the new constant also: https://resources.phplist.com/system/config/constants
e32b3e8
to
6ab50ea
Compare
@samtuke added the entry for documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in general it's fine, but it would be nice to try to improve the UX a little.
@@ -606,6 +606,10 @@ | |||
if (!defined('USERSPAGE_MAX')) { | |||
define('USERSPAGE_MAX', 1000); | |||
} | |||
// if false, it will disable the automatic updater. | |||
if (!defined ('ALLOW_UPDATER')){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be nice here to verify some requirements, like file and directory permissions and then to disable it automatically when those requirements are not met. That will be a better UX, suppressing the links in the UI when they cannot be used anyway.
Where might the logic for those checks go? Users should to be prompted to fix permissions in order to be able to upgrade. |
Co-Authored-By: xh3n1 <myrtajxheni@gmail.com>
I think this PR is good to go, The files permission check is done on the updater and the update cannot continue without users fixing the permission of displayed files. After that they do that, they can try again. |
Mantis: https://mantis.phplist.org/view.php?id=19654