mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Fix a regression in r9498, activation could really do with an overhaul :(
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9520 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
928fc7be97
commit
a7f57d0aa1
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,8 @@ class ucp_activate
|
||||||
|
|
||||||
// Do not allow activating by non administrators when admin activation is on
|
// Do not allow activating by non administrators when admin activation is on
|
||||||
// Only activation type the user should be able to do is INACTIVE_REMIND
|
// Only activation type the user should be able to do is INACTIVE_REMIND
|
||||||
if ($user_row['user_inactive_reason'] != INACTIVE_REMIND && $config['require_activation'] == USER_ACTIVATION_ADMIN && !$auth->acl_get('a_user'))
|
// or activate a new password which is not an activation state :@
|
||||||
|
if (!$user_row['user_newpasswd'] && $user_row['user_inactive_reason'] != INACTIVE_REMIND && $config['require_activation'] == USER_ACTIVATION_ADMIN && !$auth->acl_get('a_user'))
|
||||||
{
|
{
|
||||||
if (!$user->data['is_registered'])
|
if (!$user->data['is_registered'])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue