diff --git a/components/com_users/models/registration.php b/components/com_users/models/registration.php index 3489061c9c899..ace47b3aac6f4 100644 --- a/components/com_users/models/registration.php +++ b/components/com_users/models/registration.php @@ -71,10 +71,6 @@ public function activate($token) // Activate the user. $user = JFactory::getUser($userId); - // Permissions check for admin to activate user - $admin = JFactory::getUser(); - $allow = $admin->authorise('core.edit.state', 'com_users'); - // Admin activation is on and user is verifying their email if (($userParams->get('useractivation') == 2) && !$user->getParam('activate', 0)) { @@ -143,7 +139,7 @@ public function activate($token) } } // Admin activation is on and admin is activating the account - elseif (($userParams->get('useractivation') == 2) && $user->getParam('activate', 0) && $allow) + elseif (($userParams->get('useractivation') == 2) && $user->getParam('activate', 0)) { $user->set('activation', ''); $user->set('block', '0');