Create articles in category, but deny edit category itself

Moderators: mandville, General Support Moderators

Locked
lixx
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Apr 21, 2012 8:13 pm

Create articles in category, but deny edit category itself

Post by lixx » Sat Apr 21, 2012 8:32 pm

Hello guys,

I have a problem, please.. maybe someone can help me? Thank you a lot in advance!

I quite understand whole ACL concept, but some "advanced" things are still unclear for me. Is it somehow possible to allow users to create articles in particular category (I have this solved) but at the same time deny them to edit category itself (i mean changing category name, description etc) + at the same time don't allow them create sub-categories in that category?

It looks like when user has CREATE permission in category (to create articles within that category), he is also able to create sub-categories within that category.

Thank you a lot!

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44038
Joined: Sat Apr 05, 2008 9:58 pm

Re: Create articles in category, but deny edit category itse

Post by Webdongle » Sat Apr 21, 2012 8:36 pm

Editing from the front end or from admin ?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

lixx
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Apr 21, 2012 8:13 pm

Re: Create articles in category, but deny edit category itse

Post by lixx » Sat Apr 21, 2012 8:40 pm

Hello, I mean editing from ADMIN (back end).

I want users to create articles only within category (this is already set).
But now the have also permission to edit that category (name / description / state..) and they can also create sub-categories of that category. This is what I want to avoid.

Thank you.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44038
Joined: Sat Apr 05, 2008 9:58 pm

Re: Create articles in category, but deny edit category itse

Post by Webdongle » Sat Apr 21, 2012 9:18 pm

Set the permissions of a SubCategory for 'Registered' create Allowed
and
The the category below that as Registered create Denied

Front end menu item 'Create Article' set default Article

That will have the effect you are seeking when editing from the front end

Not sure if that can be that restrictive when editing from the admin.

('Registered' can also be a user Group with Registered as Parent)
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

lixx
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Apr 21, 2012 8:13 pm

Re: Create articles in category, but deny edit category itse

Post by lixx » Mon Apr 23, 2012 1:45 pm

Hello,

Thank you a lot for reply! All the editors infrastructure is now located on back-end, so maybe later I'll build front-end solution and try this.

Thanks again for help!

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44038
Joined: Sat Apr 05, 2008 9:58 pm

Re: Create articles in category, but deny edit category itse

Post by Webdongle » Mon Apr 23, 2012 2:27 pm

If you set the Permissions correctly you do not need to allow access to backend for editing. Just have a menu item set to Registered(or a group that has Registered as parent) that is create. Logged in users who can click the menu will only be able to create or edit what they are allowed to do.

Setting up a demo now

Addendum
If you want to allow users into the backend and control which Categories they can create in Then:
  • Create your new users groups with 'Manager' as Parent
    (or set your current editing groups with 'Manager' as parent)
  • In your Top Category
  • In your Top Category Deny create/Edit/Delete/Edit own/Edit state
  • You can ... when you Create your sub categories allow for the relevant Group)
    (Remember Permissions are inherited downwards so if you have more than one level of child categories then ... put the lowest trusted first)
When a user logs in the backend they will see Articles Categories media manager and Edit profile. media manager options can be set to deny access if desired(but images can still be uploaded in the Article screen).

The user will be able to click the New button and create Categories but they can not set the new category to one that they do not have create Permissions.
The user can create an Article but can only set it to a Category they have create rights to.

The user can create new Top level categories and assign Articles to them but if you want full control then don't let them in the backend. Just allow them to edit from the front end.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7897
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: Create articles in category, but deny edit category itse

Post by mcsmom » Wed Apr 25, 2012 11:44 am

For any group you can set create to allow and leave edit at inherited deny or specifically deny them. Each of the permissions is idnependent of the others.
However edit.own is going to override a deny. If you don't want them to have edt.own everywhere it is better to leave that as soft deny and give it explicitly in just the categories you want.

People who can create articles in a category can also create categories. That's just part of the structure of the acl system.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

User avatar
AntiRules
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Apr 01, 2010 11:12 pm

Re: Create articles in category, but deny edit category itse

Post by AntiRules » Sun Jan 25, 2015 12:13 pm

till now no solutions for this ?!

just want my manager to add articles to any category but don't want them to access and edit any categories ?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44038
Joined: Sat Apr 05, 2008 9:58 pm

Re: Create articles in category, but deny edit category itse

Post by Webdongle » Sun Jan 25, 2015 5:28 pm

mcsmom wrote:...

People who can create articles in a category can also create categories. That's just part of the structure of the acl system.
Perhaps a rephrasing of that may clarify things.
That applies if the permissions(for a user group) in Global config or Article/Category Options are set to 'Create' Allowed. However if the permissions of 'Create'(for a user group) in Global config or Article/Category are Not allowed' (because of inherited) or set to Deny ... Then Users of that group can not create Categories or Articles.

To allow Users to create Articles in a Category(or several Categories)
  1. Create a User Group with 'Registered' as parent.
  2. In Components >>> Categories >>> edit screen of the Category ... set Create 'Allow' (for the User Group) in the permissions for that Category.
That will allow Users of that User Group to create Articles in that Category but not in other Categories and allow them to create new Categories.

Always create a new User Group with 'Registered' as parent.
Always edit the Permissions of that User Group at the lowest hierarchy level that you want that User Groups Permissions to be active for.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Locked

Return to “Access Control List (ACL) in Joomla! 2.5”