option GLOBAL_ENABLE_LABELS restricts labels globally
This commit is contained in:
@@ -272,7 +272,7 @@
|
||||
print "</li></ul>";
|
||||
}
|
||||
|
||||
if (get_pref($link, 'ENABLE_LABELS')) {
|
||||
if (GLOBAL_ENABLE_LABELS && get_pref($link, 'ENABLE_LABELS')) {
|
||||
|
||||
$result = db_query($link, "SELECT id,sql_exp,description FROM
|
||||
ttrss_labels WHERE owner_uid = '$owner_uid' ORDER by description");
|
||||
@@ -2203,6 +2203,10 @@
|
||||
|
||||
if ($op == "pref-labels") {
|
||||
|
||||
if (!GLOBAL_ENABLE_LABELS) {
|
||||
return;
|
||||
}
|
||||
|
||||
$subop = $_GET["subop"];
|
||||
|
||||
if ($subop == "test") {
|
||||
|
||||
Reference in New Issue
Block a user