J and Beyond 2013 | An International Joomla! Conference - May 31st - 2nd, 2013, Noordwijkerhout, The Netherlands
It is currently Sun May 19, 2013 3:08 am

Using Joomla ACL user groups with categories  Topic is solved

Discuss JEvents 2.x for Joomla 1.5-2.5 here - club members can use the special club forum for faster response times.
Forum rules
When requesting support, please copy and paste the 'Version information for Support Forum' from the JEvents Control Panel into your post. If you cannot see this, please enable JEvents project news within it's configuration. Also, if you get a 500 Error, Enable Joomla! Maximum Error Reporting and view the page again, you should now have a more detailed error which will help us to resolve you issue quickly.

Using Joomla ACL user groups with categories

Postby audun » Tue Dec 11, 2012 6:29 pm

I'm trying to use Joomla user groups to control who can add, edit and delete events in Jevents categories.

I can't seem to get one group to only create and edit events in just one category, i.e.:

  • Group 1 should be able to edit Category 1
  • Group 2 should be able to edit Category 2
  • Etc

I know this can be done with Jevents authorized users, but I'd prefer to use groups if that's possible.

All the groups that should be able to edit in Jevents have admin access and user can log in just fine.

This is my intital setup.

jevents-config.png
General Jevents permissions for a group
jevents-config.png (13.44 KiB) Viewed 421 times


category-permissions.png
Category permissions for the same group
category-permissions.png (8.5 KiB) Viewed 421 times


With these permissions I'm getting 403 errors when I click "New" in Jevents or try to edit one of the events in a category I should be able to edit. I am able to edit "my" category, though, for instance change the name of the category itself (and not other categories). If I increase the permissions, for instance give each group "Create Events" permissions in the general Jevents configuration, they can create events in any category.

Code: Select all
Joomla : 2.5.8
component_com_jevents : 2.2.8
module_mod_jevents_latest : 2.2.5
plugin_editors_jce : 2.3.1
audun
Posts: 2
Joined: Tue Dec 11, 2012 6:08 pm

Re: Using Joomla ACL user groups with categories  Topic is solved

Postby Tonyp » Tue Dec 11, 2012 8:08 pm

Hello,

You must set their global permissions higher first, then adjust the categories accordingly.

The system checks the global permissions to see if they can create/edit events and then it goes on to check the category permissions.

Regards
Tony
---------------------------------------

Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
User avatar
Tonyp
Contributor
Posts: 8715
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man

Re: Using Joomla ACL user groups with categories

Postby audun » Tue Dec 11, 2012 8:50 pm

Thanks for the tip. Seems to work now. :-)

In JEvents configuration->Permissions, all groups have these set to Allow:

  • Access Administration Interface
  • Create Events

For each category a group should be allowed to edit, the following permissions are set for that group:

  • Create Events
  • Edit Events
  • Publish/Manage Events
  • Delete All Events
  • Edit own events

For each category a group should not be allowed to edit, I set Create Events to Denied (as opposed to Inherit). Everything else is in practice denied for these categories as Create Events is the only permission that is set to Allow globally.
audun
Posts: 2
Joined: Tue Dec 11, 2012 6:08 pm

Re: Using Joomla ACL user groups with categories

Postby sgriesbach » Tue Feb 19, 2013 8:17 am

Jevents v2.2.8
I'm following the guidelines from the previous post, but still don't have desired permissions. Same scenario where UserGroup A should be able to edit/add/delete only events in Category A.

Jevents - Permissions
All groups set to Allow for
Access Admin
Create Events

Jevents - Manage Categories -
For Category A, UserGroup A is set to Allow for all options
All other UserGroups
Create Event set to Deny
Other options inherit to Deny
sgriesbach
Gold Members
Posts: 10
Joined: Sat Oct 27, 2012 6:19 pm

Re: Using Joomla ACL user groups with categories

Postby Geraint » Tue Feb 19, 2013 10:36 am

Your user groups should not need to access admin since most users can create and manage events in the frontend of Joomla.

The category option you have look right.

Make sure you don't enable authorised user mode in JEvents.

Also you could have problems if Category A is a sub-catetgory of another category with different permissions.

If that doesn't help please send me login details via PM for a user in group A, a user not in group A and a user who can modifiy the access permissions in JEvents. I'll then take a look for you.
------------
JEvents club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits.

Join the JEvents club today!
User avatar
Geraint
Posts: 30507
Joined: Fri Feb 15, 2008 6:14 pm


Return to Jevents 2.x (Free Access)

Who is online

Users browsing this forum: No registered users

Main Menu

User Menu

Hosted By


Who is online

In total there are 0 users online :: 0 registered and 0 hidden (based on users active over the past 5 minutes)
Most users ever online was 94 on Tue Sep 01, 2009 12:33 am

Users browsing this forum: No registered users

Login Form