aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/session.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-04-02 15:47:23 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-04-02 15:47:23 +0000
commit1d1b5e6446667cc03cb765c789e269b4efa7e3a8 (patch)
tree4c61193c8211363f6a70e38748c022df1e984e41 /phpBB/includes/session.php
parent9850d7756ac0a140077264b8a152ff15495aa229 (diff)
downloadforums-1d1b5e6446667cc03cb765c789e269b4efa7e3a8.tar
forums-1d1b5e6446667cc03cb765c789e269b4efa7e3a8.tar.gz
forums-1d1b5e6446667cc03cb765c789e269b4efa7e3a8.tar.bz2
forums-1d1b5e6446667cc03cb765c789e269b4efa7e3a8.tar.xz
forums-1d1b5e6446667cc03cb765c789e269b4efa7e3a8.zip
some fixes...
git-svn-id: file:///svn/phpbb/trunk@7266 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r--phpBB/includes/session.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index 454c4fd648..2b845bc4d7 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -1409,7 +1409,7 @@ class user extends session
// Does the user need to change their password? If so, redirect to the
// ucp profile reg_details page ... of course do not redirect if we're already in the ucp
- if (!defined('IN_ADMIN') && !defined('ADMIN_START') && $config['chg_passforce'] && $this->data['is_registered'] && $this->data['user_passchg'] < time() - ($config['chg_passforce'] * 86400))
+ if (!defined('IN_ADMIN') && !defined('ADMIN_START') && $config['chg_passforce'] && $this->data['is_registered'] && $auth->acl_get('u_chgpasswd') && $this->data['user_passchg'] < time() - ($config['chg_passforce'] * 86400))
{
if (strpos($this->page['query_string'], 'mode=reg_details') === false && $this->page['page_name'] != "ucp.$phpEx")
{