From 949b1a949130a78419532e899cf39a92448237c0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 16 May 2012 11:56:21 +0400 Subject: [PATCH] hide several user-related prompts when using remote auth + auto_login (closes #447) --- classes/pref_prefs.php | 5 +++-- index.php | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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 @@