? Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
18 May 2016

Summary of Changes

Some ACL in the menus list view aren't working quite right:

  • If the user can't edit a particular menu type it should not have a link to it.
  • Also if a user can't view the menu "Access Administration Interface" for a particular menu it shouldn't have links in the count buttons.
  • Also if a user can't edit the menu "Edit" for a particular menu it shouldn't have the options to edit inside the edit screen.

This PR solves this issues.

Before
image

After
image

Testing Instructions

  1. Create a user groups "testgroup" (child of "Administrator" user group)

  2. Go to Menus -> Manager, edit a particular menu and set the "testgroup" group to have no permission (Denied) in "Edit" and "Access Administration Interface"

  3. Create a user "testuser" and add it only to "testgroup"

  4. Open a new private browser window and login to backend with "testuser".

  5. Go to menu Menus -> Manage

  6. You can see the user can view the edit link for the menu type (and if you click on it, it can edit the menu type) and also has a link in the published/unpublished/trashed count.

    It shouldn't since you removed those permission in "2."

  7. Apply patch. Repeat step 6. all good.

@bembelimen @infograf768 please test

avatar andrepereiradasilva andrepereiradasilva - open - 18 May 2016
avatar andrepereiradasilva andrepereiradasilva - change - 18 May 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2016
Labels Added: ?
avatar andrepereiradasilva andrepereiradasilva - change - 18 May 2016
The description was changed
avatar brianteeman brianteeman - change - 18 May 2016
Category ACL
avatar andrepereiradasilva andrepereiradasilva - change - 18 May 2016
The description was changed
avatar infograf768 infograf768 - test_item - 19 May 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 19 May 2016

I have tested this item successfully on 2f8b74b


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10546.

avatar infograf768
infograf768 - comment - 21 May 2016

@brianteeman @roland-d
This needs tests

avatar infograf768
infograf768 - comment - 23 May 2016

@Cybernary @JoomliC
Please test. Let's get rid of these errors in Menus->Manage ????

avatar brianteeman brianteeman - test_item - 24 May 2016 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 24 May 2016

I have tested this item ???? unsuccessfully on 2f8b74b

I can confirm the issue
After applying the patch the published link is disabled but the menu type is still enabled - see screenshots


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10546.

avatar brianteeman
brianteeman - comment - 24 May 2016

screen shot 2016-05-24 at 04 26 33

screen shot 2016-05-24 at 04 26 40


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10546.

avatar andrepereiradasilva
andrepereiradasilva - comment - 24 May 2016

yes, because you can "Edit", and that is the edit menu type link (as said before, IMO doesn't make sense the edit link being there :) - see #10294)

avatar brianteeman
brianteeman - comment - 24 May 2016

Sorry my fault. I set delete to denied and not edit

avatar brianteeman brianteeman - test_item - 24 May 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 24 May 2016

I have tested this item successfully on 2f8b74b


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10546.

avatar brianteeman brianteeman - change - 24 May 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 24 May 2016

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10546.

avatar joomla-cms-bot joomla-cms-bot - change - 24 May 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 24 May 2016
Milestone Added:
avatar roland-d roland-d - test_item - 28 May 2016 - Tested unsuccessfully
avatar roland-d
roland-d - comment - 28 May 2016

I have tested this item ???? unsuccessfully on 2f8b74b

We are still having some issues. When I go to Menus and edit a menutype and set the Access Administration Interface to Denied and the Edit to Denied after saving the changes I see the settings still set to Inherited but now with a Not Allowed Lock behind them.

After logging in as the testuser all menus are no longer clickable, not just the menutype I altered.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10546.

avatar roland-d roland-d - change - 28 May 2016
Status Ready to Commit Information Required
Labels
avatar roland-d
roland-d - comment - 28 May 2016

Taking off RTC as this requires more investigation.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10546.

avatar joomla-cms-bot joomla-cms-bot - change - 28 May 2016
Labels Removed: ?
avatar andrepereiradasilva
andrepereiradasilva - comment - 28 May 2016

@roland-d do you mean this #10121 or this #10552?

If so is not related to this PR

avatar roland-d
roland-d - comment - 28 May 2016

@andrepereiradasilva I do not mean these 2 issues. Have a look at this screenshot. I am logged in as the testuser and have set the Deny permission on the aboutjoomla menu type only. This is after applying this patch, before applying I always have the edit links.

image

avatar andrepereiradasilva
andrepereiradasilva - comment - 28 May 2016

ok, will look at it tomorrow. thanks for the test.

avatar infograf768
infograf768 - comment - 29 May 2016

@roland-d

Are you sure you did not also change the general permissions of com_menu for this testgroup?

avatar andrepereiradasilva
andrepereiradasilva - comment - 29 May 2016

@roland-d i tested again and couldn't reproduce your issues.
Are you sure your're ACL are like this?:

Component ACL

image

Menu type ACL

image

avatar infograf768
infograf768 - comment - 31 May 2016

@roland-d
bump :)

avatar roland-d roland-d - test_item - 31 May 2016 - Tested successfully
avatar roland-d
roland-d - comment - 31 May 2016

I have tested this item successfully on 2f8b74b

After using a newly installed website I am able to see the testuser sees all links as editable. After setting the edit and access to denied for a specific menu type the user can no longer edit that menutype.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10546.

avatar roland-d roland-d - change - 31 May 2016
Status Information Required Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-05-31 07:34:26
Closed_By roland-d
avatar roland-d roland-d - close - 31 May 2016
avatar roland-d roland-d - merge - 31 May 2016
avatar roland-d roland-d - reference | defd458 - 31 May 16
avatar roland-d roland-d - merge - 31 May 2016
avatar roland-d roland-d - close - 31 May 2016
avatar roland-d
roland-d - comment - 31 May 2016

Thanks everybody

Add a Comment

Login with GitHub to post a comment