Joomla 1.6 – Restrict Groups/Author to Categories

by Elaine on April 24, 2011

This is a continuation of my last post I made last month.   Using Joomla 1.6 you can use ACL now to control permissions throughout your site.  Including restricting groups or authors to publish/create articles in  categories.    Here is an example:

Below are groups and categories they should be publishing in:

Scenario 1:

  • Group = Bloggers 1
  • Categories = First Category 1

Scenario 2:

  • Group = Bloggers 2
  • Categories = Second Category 2

Overview of what needs to be done:

  • Create 2 new Author user groups – Bloggers 1, Bloggers 2
  • Create users and assign them to Bloggers 1 and Bloggers 2
  • Create Categories – First Category 1, Second Category 2
  • Restrict Permissions – Bloggers 2 cannot edit First Category 1
  • Restrict Permissions – Bloggers 1 cannot edit First Category 2

Steps to Restrict Author Groups to Create Articles in Categories:

1.  Create 2 New User Groups – “Bloggers 1”, “Bloggers 2”:

  • Click on ‘Users’, ‘Groups’, ‘Add New Group’
  • Set Group Title = “Bloggers 1”
  • Set Group Parent = “Author”
  • Click on ‘Save & Close’
  • Repeat the same steps for “Bloggers 2”

2.  Assign Users to the Group – “Bloggers 1″, “Bloggers 2”

  • Click on ‘Users’, ‘User Manager
  • Click on the user you want to add to the group
  • Scroll down to the section “Assign User Groups”
  • Use the checkbox to select “Bloggers 1”.
  • Save.
  • Repeat the above steps for other users you want to assign to this group.
  • Repeat the above steps to add users into Group = “Bloggers 2”

3.  Create Categories – ‘First Category 1′ ,’ Second Category 2′

  • Click on Content, Category Manager, Add New Category
  • Title = First Category 1
  • Save
  • Repeat the above steps to create second category = Second Category 2

4.  Restrict Permissions – Bloggers 2 cannot edit First Category 1

  • Click on Content, Category Manager
  • Edit the first category – First Category 1
  • Click on Permissions
  • Use twistie to expand ‘Bloggers 2’
  • Set Create = Denied
  • Set Edit Own = Denied
  • Click on ‘ Save & Close’

5.  Restrict Permissions – Bloggers 1 cannot edit Second Category 2

  • Click on Content, Category Manager
  • Edit the second category – Second Category 2
  • Click on Permissions
  • Use twistie to expand ‘Bloggers 1’
  • Set Create = Denied
  • Set Edit Own = Denied
  • Click on ‘ Save & Close’

So above are the steps to restrict an author group from creating, editing, publishing articles in a category other than their own.    Only users in the Bloggers 1 user group can create articles in First Category 1 and the same goes with users in Bloggers 2 user group can only create articles in Second Category 2.

 Joomla 1.6   Restrict Groups/Author to Categories

Elaine

Elaine is the founder of CmsMind, an online blog providing Joomla and Wordpress tutorials. Elaine lives in Toronto and when she is not online, she is either Marathon and Triathlon training or travelling and racing somewhere in the world. Find her also at: Save Money, Premium Themes and Templates, and at Webhosting Tips.

More Posts - Website

{ 3 comments… read them below or add one }

Will June 29, 2011 at 9:14 pm

This is a great answer to my problem. Thanks so much.

I have modified it a bit to cut down the hassle and make it a bit easier to change.

Instaed of creating all groups under the author group and then denying each other group permission to a certain category, rather do this.

Create a category under the public group called “Bloggers”. You can then click on “options” in the user groups manager and change the permissions for the blogers group. Edit the states that you want all the blogging groups to be able to do. In my case, I have franchises that I only wanted to edit and create their own content in their own category so i changed the permission that said “edit own” to allowed.

Then you can make each”bloggers” group (or franchise, in my case) a child group of the “Bloggers” group. Now every group will inherit the “Edit Own” permission.

All you do now is create your categories that you want each group to use and set the “create” permission for that group to “allowed”. Now all the other groups will automatically not have permission to use that category which saves you having to set deny permission on that category for every other group

Hope this helps someone. 🙂
I have only just done it and tested and works well, but have not extensively tested it with other options so let me know if it doesn’t work.

Regards
Will

Reply

Will June 29, 2011 at 9:36 pm

There is one thing that needs to be added to that. Once you have created the “Bloggers” top level group, you need to change the permissions in the global configuration of the site.

Go to “site” menu, then click on “Global Configuration” and then on “permissions”. You then need to choose the “Bloggers” top level group and edit the states of the permissions there (same as when I said to click on “options” in the user groups manager and change the permissions) and also include the “site login” permission to allow. Otherwise the users in the groups wont be able to log on. :p

Regards
Will

Reply

Elaine June 30, 2011 at 4:35 am

Hi Will,
Thanks for the great tips!! They greatly appreciated. I hope your tips help some of the readers here. 🙂
thanks for your visit,
elaine

Reply

Leave a Comment

Captcha Captcha Reload

Older Post:

Newer Post: