?
avatar rajmohanvy
rajmohanvy
11 May 2017

Hi team,
After upgrade the joomla to 3.7, the super admin can't access the categories. Only public categories has been displayed.

Ex : Categories name - Content Editor
Access group Name - Content owner

In back end i can't use this categories from super admin.

PHP version : 5.6

avatar rajmohanvy rajmohanvy - open - 11 May 2017
avatar joomla-cms-bot joomla-cms-bot - change - 11 May 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 11 May 2017
avatar joomla-cms-bot joomla-cms-bot - edited - 11 May 2017
avatar rajmohanvy rajmohanvy - edited - 11 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 11 May 2017
Category ACL com_categories
avatar photodude
photodude - comment - 14 May 2017

Is the super-admin checked in all access groups?

avatar Vityushka
Vityushka - comment - 15 May 2017

Same problem (or similar). After upgrading to 3.7 I can't add articles to some category. Also categories are not displayed in drop-down filter (but still here in Categories component. As I see in permissions tab - Superuser can manage this categories.

avatar rajmohanvy
rajmohanvy - comment - 16 May 2017

@photodude

No, There is different type of access level i used. In old version no limitation for super admin. Am i correct...

avatar stevlam
stevlam - comment - 16 May 2017

also have the issue in 3.7.0 in the category selector box.
I think is this line https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_categories/models/fields/categoryedit.php#L189 that causes the issue.
when i deleted that line it worked like it worked in 3.6.5.

maybe that line needs to be inside a if (!$user->authorise('core.admin')) to allow super users to view all.

note: i wrote this also here because i think this is the same issue as the other one #15799

avatar photodude
photodude - comment - 16 May 2017

@rajmohanvy Super Users "group" must always be checked in the view access levels see the image in this section of the Joomla ACL tutorial https://docs.joomla.org/J3.x:Access_Control_List_Tutorial#Access_Levels

When someone forgets to check the Super Users group or if someone removed it by mistake it can create unusual access issues (there are atypical reasons to do this, but for everyone else, it should be checked). Always important to double check that all the settings are correctly set to ensure proper ACL function. (I can't count how many times a co-admin unchecked the Super Users group and then was wondering why things were not functioning as expected)

avatar stevlam
stevlam - comment - 17 May 2017

Example of bug:

  • 3.7.1 joomla default install
  • Create category name "Guest Category" with "Guest" acess level
  • Create article and put it in "Guest Category" - not possible, no "Guest Category" in the category selector. cannot also chosse "Guest Category" in search tools box.
  • in 3.6.5 worked.

This change from 3.6.5 to 3.7.0 a7ae028 seem to be the problem

avatar mbabker
mbabker - comment - 17 May 2017

The fact that commit causes the problem indicates a misconfigured viewing access level setup on your site(s), as mentioned above.

avatar stevlam
stevlam - comment - 17 May 2017

I used default Guest acess level of joomla.
To confirm is not my site problem also tried a new joomla 3.7.1 install and it's the same behaviour.

avatar stevlam
stevlam - comment - 18 May 2017

tried again using joomla 3.7.1 default joomla zip install file from https://downloads.joomla.org/latest
also same result

try to explain further.

Categories list: category name "test" assigned to "Guest" acess level
image

Articles list: there is an article assigned to Guest acess level and super user can edit. But there is no "test" category in the filters - Problem!
image

Edit article: super user can edit a article with "Guest" acess. But there is no "test" category in the category selector - Problem!
image

And as a super user when save existent article created by other user assigned to "test" category goes back to "Uncategorized" - Problem!

only happens in 3.7.0 and 3.7.1.
please try ... seems like a bug to me...

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 18 May 2017

@stevlam thanks for Explanation, can confirm issue.

System information

3.7.2-dev
macOS Sierra, 10.12.4
Firefox 53 (64-bit)

MAMP 4.1.1

  • PHP 7.0.15
  • MySQLi 5.6.35
avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 18 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 18 May 2017
Status New Confirmed
avatar stevlam
stevlam - comment - 23 May 2017

any chance a fix for this in 3.7.3?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 May 2017

@stevlam if a Dev. has Time and is interested.

avatar stevlam
stevlam - comment - 23 May 2017

OK. thanks. hope is interest.
Besides the super user issue. Content writers Losing the categories when editing article because access levelss a real problem for my sites.
Probably people that use several view. acess levels are having this issue too

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 May 2017

Please open a new Issue about "Content writers Losing the categories" if neccessary so every issue has only one Topic Dev's has to look on.

avatar stevlam
stevlam - comment - 24 May 2017

@franz-wohlkoenig after some tests discovered the content writers thing was my mistake. sorry.

the only real issue is the one described in this issue and futher explained in #15960 (comment)

avatar idefax
idefax - comment - 29 May 2017

I can reproduce the problem as follows:

  1. Install Joomla! 3.7.2 with example data and login the backend as Super User.
  2. Create a new user group with “Public” as parent group.
  3. Create a new access level. Assign the newly created user group to it.
  4. Got to category manager and create a new category. Set access to the access level created before.
  5. Go to article manager and open any article. Assign the newly created category and save.
  6. Open the article that got the new category assigned in step 5.
    Result: In the Dropdown “Category” the new category is missing.
  7. In article manager, click the Search Tools button. Open the dropdown menu for categories.
    Result: The new category is missing.

Adding the user group “Super User” to the access level created in 3. will solve the problem.
But: A Super User always should be able to see all categories in the backend.
This problem is new since 3.7.0. It does not exist in 3.6.5.

It’s a big problem if upgrading a 3.6.5 site to 3.7.2 and if that site has many different access levels. Editing an article means losing the assigned category, unless you add “Super User” to all access levels first.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 29 May 2017

@idefax thanks, Issue is confirmed.

avatar ggppdk
ggppdk - comment - 29 May 2017

The 'categoryedit' field is e.g. used here:
https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_content/models/forms/article.xml#L45-L46

And it used to be, that it only considered core.create ACL for creating / assigning records to categories

  • now it also considers the access levels !

This was done by PR #12931

This is a change in a very long standing behavior,
and also i believe it is wrong change too because

Access levels are for viewing the categories, right ?
they are not a replacement or a complement to "core.create" ACL

avatar Bakual Bakual - change - 1 Jun 2017
The description was changed
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2017-06-01 08:17:45
Closed_By Bakual
avatar Bakual
Bakual - comment - 1 Jun 2017

See #16411

Closing as there is a PR

avatar Bakual Bakual - close - 1 Jun 2017

Add a Comment

Login with GitHub to post a comment