From: Andrew Dolgov Date: Wed, 16 May 2012 07:56:21 +0000 (+0400) Subject: hide several user-related prompts when using remote auth + auto_login (closes #447) X-Git-Tag: 1.5.11~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=949b1a949130a78419532e899cf39a92448237c0;p=tt-rss.git hide several user-related prompts when using remote auth + auto_login (closes #447) --- diff --git a/classes/pref_prefs.php b/classes/pref_prefs.php index beaca2a9..6bc428b0 100644 --- a/classes/pref_prefs.php +++ b/classes/pref_prefs.php @@ -197,7 +197,8 @@ class Pref_Prefs extends Protected_Handler { print "".__('E-mail').""; print ""; - if (!SINGLE_USER_MODE) { + if (!SINGLE_USER_MODE && !(ALLOW_REMOTE_USER_AUTH && AUTO_LOGIN)) { + $access_level = db_fetch_result($result, 0, "access_level"); print "".__('Access level').""; print "" . $access_level_names[$access_level] . ""; @@ -213,7 +214,7 @@ class Pref_Prefs extends Protected_Handler { print ""; - if (!SINGLE_USER_MODE) { + if (!SINGLE_USER_MODE && !(ALLOW_REMOTE_USER_AUTH && AUTO_LOGIN)) { $result = db_query($this->link, "SELECT id FROM ttrss_users WHERE id = ".$_SESSION["uid"]." AND pwd_hash diff --git a/index.php b/index.php index c809c183..80e3ebf9 100644 --- a/index.php +++ b/index.php @@ -93,7 +93,7 @@