1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 10:05:56 +00:00

cleanup some defined-stuff

This commit is contained in:
Andrew Dolgov
2021-02-23 09:01:27 +03:00
parent 5229cc58b2
commit 2ae0b7059f
12 changed files with 32 additions and 44 deletions

View File

@@ -123,8 +123,8 @@ class Pref_Prefs extends Handler_Protected {
function changepassword() {
if (defined('_TTRSS_DEMO_INSTANCE')) {
print "ERROR: ".format_error("Disabled in demo version.");
if (Config::get(Config::FORBID_PASSWORD_CHANGES)) {
print "ERROR: ".format_error("Access forbidden.");
return;
}