The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 21 posts ] 
Author Message
PostPosted: Wed Jun 14, 2006 2:28 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Nov 11, 2005 11:46 am
Posts: 102
Location: Kilifi, Kenya
o have this prob that i cant seem to hack as at now, but am hoping this able community will have something for me.
I need to create a user with sufficient permissions to administrate a component, but the problem is, i just need to give her access to only one component. (so the drop down foe the components wont do.
i thought of creating a backend temp, pur buttons with only the links to the partivular component, but am scared i might enable it and when i log in, cease to have access myself. (cause i havent seen abiliry to assign templates to joomla. Os there a hack to this?

_________________
Opportunity often comes disguised in overalls and using the alias "work". Dont Miss It.
-Thomas Edison-


Top
 Profile  
 
PostPosted: Wed Jun 14, 2006 2:57 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Jun 14, 2006 2:12 pm
Posts: 32
Location: UK
As far as I know the permissions system to Joomla is pretty limited. One way round it is to create your own control pannel in php which allows certain logins to manipulate certain data in the joomla database. This could take some time and you will need to be careful with how you code it (including security measures etc).

If your not confident in php then I advise that you fisrt try http://www.google.com to search for your solution. Hopefully there will be a hack out there for you.

_________________
http://www.noddegamra.co.uk


Top
 Profile  
 
PostPosted: Thu Jun 15, 2006 12:14 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Nov 11, 2005 11:46 am
Posts: 102
Location: Kilifi, Kenya
um a bit not aure about what to do here, any other ideas?

_________________
Opportunity often comes disguised in overalls and using the alias "work". Dont Miss It.
-Thomas Edison-


Top
 Profile  
 
PostPosted: Fri Jun 16, 2006 9:42 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Sun Sep 18, 2005 8:28 pm
Posts: 1824
Location: Scotland
Noddegamra is right, Joomla has a very limiting ACL (access control level). So you will need to install a component called JACLplus to extend the ACL. It allows you to setup custom groups, so what you need to do is setup your custom goup and give this group access to the component you want and assign the user to it.

Obtain JACLplus here: http://extensions.joomla.org/component/ ... Itemid,35/

thanks and good luck,

_________________
Custom website design | blog | tutorials | Photography | Downloads
Freelance Web Designer/Developer: www.duvien.com


Top
 Profile  
 
PostPosted: Fri Jun 16, 2006 2:06 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Nov 11, 2005 11:46 am
Posts: 102
Location: Kilifi, Kenya
looks like a component you have to pay for, isnt there a "free" solution. cause if the worst comes to the worst, ill just code something for the moment.

_________________
Opportunity often comes disguised in overalls and using the alias "work". Dont Miss It.
-Thomas Edison-


Top
 Profile  
 
PostPosted: Fri Jun 16, 2006 2:08 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2230
Location: The Netherlands
JACLplus is open source and freely available.

_________________
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl


Top
 Profile  
 
PostPosted: Fri Jun 16, 2006 2:15 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Sun Sep 18, 2005 8:28 pm
Posts: 1824
Location: Scotland
It is free but charted members (paid) gets new updates a month before they are released to the general public.

_________________
Custom website design | blog | tutorials | Photography | Downloads
Freelance Web Designer/Developer: www.duvien.com


Top
 Profile  
 
PostPosted: Thu Jun 29, 2006 11:06 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Nov 11, 2005 11:46 am
Posts: 102
Location: Kilifi, Kenya
tanks, i had a look at it and looks like its what i could just do with.

_________________
Opportunity often comes disguised in overalls and using the alias "work". Dont Miss It.
-Thomas Edison-


Top
 Profile  
 
PostPosted: Mon Oct 23, 2006 1:54 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Oct 21, 2006 12:57 am
Posts: 24
Location: marseille (13) france
I had the same problem and got scared when I saw the jaclPlus install process so I changed code directly in Joomla and it's very simple to add acces to "com_componentYouWant" to group "manager", for example:

in includes/gacl.class.php > function gacl

add a line to open access to install component (users will not really have install access but you need it to get edit access):
$this->_mos_add_acl( 'administration', 'install', 'users', 'manager', 'components', 'all' );

and just add a line for the component you want to add:
$this->_mos_add_acl( 'administration', 'edit', 'users', 'manager', 'components', 'com_componentYouWant' );

Hope this will save time to next readers of that topic ;)

_________________
kmc
http://www.webologix.com


Top
 Profile  
 
PostPosted: Mon Oct 23, 2006 2:45 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Sun Oct 02, 2005 12:50 am
Posts: 17558
Location: Omaha, NE
See this article http://www.webpr.gr/joomla/2006/07/give-joomla-backend-managers-access-to.html for a complete discussion of the changes that you could make.

Regards

Dave

_________________
Regards, Dave
http://www.kiwaniswest.org
http://www.huelsmann.us


Top
 Profile  
 
PostPosted: Sun Oct 29, 2006 3:45 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Aug 16, 2006 6:52 am
Posts: 28
I've tried both of these methods but neither of them makes the relevent component icon appear in the control panel? Am I missing something?

I'm on ver 1.0.11

If I comment out one of the default components - Media Manger for example, then the icon still appears but I get access denied, so I know it is working.

How can I give a manager access to the coponents after editing gacl.clas.php?

Wayne


Top
 Profile  
 
PostPosted: Sun Oct 29, 2006 3:50 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Sun Oct 02, 2005 12:50 am
Posts: 17558
Location: Omaha, NE
MrTeroo wrote:
I've tried both of these methods but neither of them makes the relevent component icon appear in the control panel? Am I missing something?

I'm on ver 1.0.11

If I comment out one of the default components - Media Manger for example, then the icon still appears but I get access denied, so I know it is working.

How can I give a manager access to the coponents after editing gacl.clas.php?

Wayne


Unless I am missing something in your question, the users you grant access to components would not see a new icon added to the admin home page but would go through the menus at the top of tha admin page - components for instance and select the one they have been given access to - the rest of them should give the access denied message if attempted.

Regards

Dave

_________________
Regards, Dave
http://www.kiwaniswest.org
http://www.huelsmann.us


Last edited by dhuelsmann on Sun Oct 29, 2006 6:36 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sun Oct 29, 2006 4:56 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Aug 16, 2006 6:52 am
Posts: 28
Thanks for the quick reply, Dave.

I don't expect to see anything on the front page.

When I log in using a manager a/c in the backend, there is no components on the top menu and no icons other than the default ones in the control pane.

So my question, I suppose, is how do I make components appear on the top menu for a manager a/c.

(BTW I have tried both methods described earlier in this post. I suspect that they are both working, but I don't see an icon or menu item to try them out)

Wayne


Top
 Profile  
 
PostPosted: Sun Oct 29, 2006 6:40 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Sun Oct 02, 2005 12:50 am
Posts: 17558
Location: Omaha, NE
I was not referring to the front page but rather the admin home page. Perhaps this link will help you understand the user level you need to assign http://forum.joomla.org/index.php/topic,26169.0.html. If you want to limit a backend person to certain content functions, you make them a manager, if it is for components, you make them an administrator.

Regards

Dave

_________________
Regards, Dave
http://www.kiwaniswest.org
http://www.huelsmann.us


Top
 Profile  
 
PostPosted: Sun Oct 29, 2006 6:47 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Aug 16, 2006 6:52 am
Posts: 28
Yes, I understand the user level permissions, but as described in this thread, I want to give a manager level user, access to one component only.

I followed the instructions below, but I don't know how to either

a: Make the components menu item appear for the manager level user
and/or
b:Make a QuickIcon appear for the one component the manager level user should have access to?

Wayne


kmchen wrote:
I had the same problem and got scared when I saw the jaclPlus install process so I changed code directly in Joomla and it's very simple to add acces to "com_componentYouWant" to group "manager", for example:

in includes/gacl.class.php > function gacl

add a line to open access to install component (users will not really have install access but you need it to get edit access):
$this->_mos_add_acl( 'administration', 'install', 'users', 'manager', 'components', 'all' );

and just add a line for the component you want to add:
$this->_mos_add_acl( 'administration', 'edit', 'users', 'manager', 'components', 'com_componentYouWant' );

Hope this will save time to next readers of that topic ;)


Top
 Profile  
 
PostPosted: Sun Oct 29, 2006 10:27 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Sun Oct 02, 2005 12:50 am
Posts: 17558
Location: Omaha, NE
See this thread for a possible solution http://forum.joomla.org/index.php/topic,62880.0.html

Regards

Dave

_________________
Regards, Dave
http://www.kiwaniswest.org
http://www.huelsmann.us


Top
 Profile  
 
PostPosted: Mon Oct 30, 2006 8:44 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Aug 16, 2006 6:52 am
Posts: 28
Thanks Dave,

But if you read the last post in the thread you will see that I am already trying that, but I can't change the access level of the component from administrator to manager.

Wayne


Top
 Profile  
 
PostPosted: Mon Oct 30, 2006 8:48 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Oct 21, 2006 12:57 am
Posts: 24
Location: marseille (13) france
Hi teroo

A copy of your includes/gacl.class.php > function gacl would probably help.

_________________
kmc
http://www.webologix.com


Top
 Profile  
 
PostPosted: Mon Oct 30, 2006 9:29 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Aug 16, 2006 6:52 am
Posts: 28
Dave & Kmchen

Thanks for your help & support.

I've gone back to the beginning and I have it working now.

No idea what I was doing wrong. Here is the block of code I ended up with:
\includes\gacl.class.php - starting at line 152

// Standard Access - Start
$this->_mos_add_acl( 'administration', 'install', 'users', 'administrator', 'components', 'all' );
$this->_mos_add_acl( 'administration', 'install', 'users', 'super administrator', 'components', 'all' );

$this->_mos_add_acl( 'administration', 'edit', 'users', 'super administrator', 'components', 'all' );
$this->_mos_add_acl( 'administration', 'edit', 'users', 'administrator', 'components', 'all' );
// Standard Access - End

// Custom Access - Start
// added for managers' access

$this->_mos_add_acl( 'administration', 'install', 'users', 'manager', 'components', 'all' );
$this->_mos_add_acl( 'administration', 'edit', 'users', 'manager', 'components', 'com_massmail' );
$this->_mos_add_acl( 'administration', 'manage', 'users', 'manager', 'components', 'com_massmail' );
$this->_mos_add_acl( 'administration', 'manage', 'users', 'manager', 'components', 'com_trash' );
$this->_mos_add_acl( 'administration', 'edit', 'users', 'manager', 'components', 'com_banners' );

$this->_mos_add_acl( 'administration', 'edit', 'users', 'manager', 'components', 'com_events' );
$this->_mos_add_acl( 'administration', 'edit', 'users', 'manager', 'components', 'com_facileforms' );
// Custom Access - End


Last edited by MrTeroo on Mon Oct 30, 2006 9:32 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon Oct 30, 2006 11:08 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Oct 20, 2006 8:19 am
Posts: 14
Thanks for this thread, I spent many hours trying and this mad things simpler. I have managed to give manager access to 2 components with no problems but I would like to remove the Menu option  for the manager to prevent any changes to the menus (main, user and top menus) Any ideas.

Thanks!


Top
 Profile  
 
PostPosted: Mon Nov 27, 2006 12:16 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Nov 20, 2006 9:52 am
Posts: 46
Thank you for posting this.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ] 



Who is online

Users browsing this forum: No registered users and 5 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® Forum Software © phpBB Group