Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 11:44 am (All times are UTC )

 




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: joomlaXplorer
Posted: Thu Feb 23, 2006 1:20 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Mon Aug 29, 2005 10:58 am
Posts: 109
Location: Germany
Hello,

joomlaXplorer locks out all non-superadministrators by default. It uses the acl_check function, which is now being replaced by
Code:
$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:
if(!$acl->acl_check( 'administration', 'config', 'users', $my->usertype )) {
   mosRedirect( 'index2.php', _NOT_AUTH );
}


WITH

Code:
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

_________________
VirtueMart Lead Developer
Other projects: eXtplorer & joomlaXplorer, DocBook:Collab


Top
  E-mail  
 
 Post subject: Re: joomlaXplorer
Posted: Thu Feb 23, 2006 2:03 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 8:53 am
Posts: 711
Location: Switzerland
soeren wrote:
Code:
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


Top
  E-mail  
 
 Post subject: Re: joomlaXplorer
Posted: Thu Feb 23, 2006 3:11 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Wed Aug 17, 2005 11:03 pm
Posts: 1356
Location: New Orleans, Louisiana
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

_________________
Development Working Group Coordinator
http://webimagery.net - Consulting
http://jxtended.com - Solutions for Joomla! 1.5
A hacker does for love what others would not do for money.


Top
  E-mail  
 
 Post subject: Re: joomlaXplorer
Posted: Thu Feb 23, 2006 7:46 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 7:13 am
Posts: 13257
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.

_________________
Antonie de Wilde - Forum admin
All Joomla! release dates and days between releases: http://jfoobar.org/blog/189-days-betwee ... a-releases.test


Top
   
 
 Post subject: Re: joomlaXplorer
Posted: Thu Feb 23, 2006 7:59 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Mon Aug 29, 2005 10:58 am
Posts: 109
Location: Germany
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

_________________
VirtueMart Lead Developer
Other projects: eXtplorer & joomlaXplorer, DocBook:Collab


Top
  E-mail  
 
 Post subject: Re: joomlaXplorer
Posted: Fri Feb 24, 2006 3:22 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Wed Aug 17, 2005 11:03 pm
Posts: 1356
Location: New Orleans, Louisiana
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

_________________
Development Working Group Coordinator
http://webimagery.net - Consulting
http://jxtended.com - Solutions for Joomla! 1.5
A hacker does for love what others would not do for money.


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group