summaryrefslogtreecommitdiff
path: root/classes/pref_prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-05-16 11:56:21 +0400
committerAndrew Dolgov <[email protected]>2012-05-16 11:56:21 +0400
commit949b1a949130a78419532e899cf39a92448237c0 (patch)
tree95461fcb3dc50778bdb1096a1920e940a8a5525d /classes/pref_prefs.php
parent35b9844be1b05e1d75646f53dc080d106ab5770e (diff)
hide several user-related prompts when using remote auth + auto_login (closes #447)
Diffstat (limited to 'classes/pref_prefs.php')
-rw-r--r--classes/pref_prefs.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/pref_prefs.php b/classes/pref_prefs.php
index beaca2a9a..6bc428b04 100644
--- a/classes/pref_prefs.php
+++ b/classes/pref_prefs.php
@@ -197,7 +197,8 @@ class Pref_Prefs extends Protected_Handler {
print "<tr><td width=\"40%\">".__('E-mail')."</td>";
print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" name=\"email\" required=\"1\" value=\"$email\"></td></tr>";
- if (!SINGLE_USER_MODE) {
+ if (!SINGLE_USER_MODE && !(ALLOW_REMOTE_USER_AUTH && AUTO_LOGIN)) {
+
$access_level = db_fetch_result($result, 0, "access_level");
print "<tr><td width=\"40%\">".__('Access level')."</td>";
print "<td>" . $access_level_names[$access_level] . "</td></tr>";
@@ -213,7 +214,7 @@ class Pref_Prefs extends Protected_Handler {
print "</form>";
- 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