joomlaXplorer

User avatar
soeren
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 111
Joined: Mon Aug 29, 2005 10:58 am
Location: Germany
Contact:

joomlaXplorer

Postby soeren » Thu Feb 23, 2006 1:20 pm

Hello,

joomlaXplorer locks out all non-superadministrators by default. It uses the acl_check function, which is now being replaced by

Code: Select all

$user->authorize( ... )
.

So the only thing for making joomlaXplorer work on Joomla 1.1.x is to replace a code section in the file admin.joomlaxplorer.php.

REPLACE

Code: Select all

if(!$acl->acl_check( 'administration', 'config', 'users', $my->usertype )) {
   mosRedirect( 'index2.php', _NOT_AUTH );
}


WITH

Code: Select all

global $user;
if( is_callable( array( @$user, 'authorize' ))) {

   if (!$user->authorize( 'com_config', 'manage' )) {
      mosRedirect( 'index2.php', _NOT_AUTH );
   }
}
elseif(!$acl->acl_check( 'administration', 'config', 'users', $my->usertype )) {
   mosRedirect( 'index2.php', _NOT_AUTH );
}


All other parts of this component should be working (it even works under Mambo 4.5 1.0.3,  :laugh:).

I will be releasing this with version 1.3.3 of joomlaXplorer soon.

ciao, Soeren

User avatar
Beat
Joomla! Guru
Joomla! Guru
Posts: 837
Joined: Thu Aug 18, 2005 8:53 am
Location: Switzerland
Contact:

Re: joomlaXplorer

Postby Beat » Thu Feb 23, 2006 2:03 pm

soeren wrote:

Code: Select all

if(!$acl->acl_check( 'administration', 'config', 'users', $my->usertype )) {
   mosRedirect( 'index2.php', _NOT_AUTH );
}



There is backwards compatibility for such tests built in 1.1, but not complete yet, which maybe need some more adaptation in J! 1.1.

Louis did add the tests using acl_check for CB to Joomla! 1.1, he can probably add the ones missing here and the other ones reported...

At this stage, we try to keep backwards compatibility to 1.0 for existing components, avoiding you to have 2 components to maintain.

Louis or Johan, can you confirm this ?
Beat 8)
www.joomlapolis.com <= Community Builder + CBSubs Joomla membership payment system - team
hosting.joomlapolis.com <= Joomla! Hosting, by the CB Team

User avatar
louis.landry
Joomla! Ace
Joomla! Ace
Posts: 1388
Joined: Wed Aug 17, 2005 11:03 pm
Location: San Jose, California
Contact:

Re: joomlaXplorer

Postby louis.landry » Thu Feb 23, 2006 3:11 pm

Indeed, we are trying to make the load on third party developers as light as possible.  Soeren, I have added the acl back into SVN for you, let me know if this solves the problem. 

Louis
Joomla Platform Maintainer
A hacker does for love what others would not do for money.

User avatar
Tonie
Joomla! Master
Joomla! Master
Posts: 16584
Joined: Thu Aug 18, 2005 7:13 am

Re: joomlaXplorer

Postby Tonie » Thu Feb 23, 2006 7:46 pm

I installed JoomlaXplorer just now on the latest SVN (not any more probably by the time I write this). It is working on my dev box now.

User avatar
soeren
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 111
Joined: Mon Aug 29, 2005 10:58 am
Location: Germany
Contact:

Re: joomlaXplorer

Postby soeren » Thu Feb 23, 2006 7:59 pm

Hello,

the reaction time is great. I think many 3PDs are using this acl_check function, so it makes sense to keep it as it is for now.

joomlaXplorer works again on Joomla! ;).

ciao, Soeren

User avatar
louis.landry
Joomla! Ace
Joomla! Ace
Posts: 1388
Joined: Wed Aug 17, 2005 11:03 pm
Location: San Jose, California
Contact:

Re: joomlaXplorer

Postby louis.landry » Fri Feb 24, 2006 3:22 am

to be perfectly clear... the acl_check function is still available... this is part of the phpGACL library, the problem is that we apparently did some house cleaning on the actual ACL entries... some of you are obviously using some of these... and as we come across issues with it we will add them back with a note of them being deprecated :)

Good to hear you are back in business

Louis
Joomla Platform Maintainer
A hacker does for love what others would not do for money.


Return to “Third Party Testing for Joomla! 1.5”

Who is online

Users browsing this forum: No registered users and 1 guest