J1.6 User Creation Error found!!!! ACL Issue

Locked
User avatar
jiggliemon
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Wed Nov 22, 2006 6:18 am
Contact:

J1.6 User Creation Error found!!!! ACL Issue

Post by jiggliemon » Fri May 08, 2009 10:23 pm

I've been racking my brain left and right trying to figure out why i couldn't create a user in 1.6 that will login.

Well i just found the problem.

Code: Select all

joomla.plugins.joomla.php

Starting line 112:
               // Always let the Root User in
		if ($userId != JFactory::getApplication()->getCfg('root_user'))
		{
			$acs	= new JAccess;
			$result	= $acs->check($instance->id, $options['action']);
			if ($result['allow'] = '0') {  ////// Change is to this!!!!!! Or an equiv.  
				return JError::raiseWarning(401, JText::_('JError_Login_denied'));
			}
		}
Line 117 does a if(!$result['allow']).... But it's not a bool.
Thus you need to throw a True false or check for something else.

OR im doing something completely wrong.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17423
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: J1.6 User Creation Error found!!!! ACL Issue

Post by toivo » Fri May 08, 2009 11:25 pm

If you want to test the value, you should use === or == instead.
Toivo Talikka, Global Moderator


Locked

Return to “Feature Requests - White Papers - Archived”