? Success
Related to # 4954

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
2 Nov 2014

Issue

As explained in issue #4954, currently it's not possible to give someone access to the options without giving him also access to the permissions. It means that a user with access to the options is a "SuperUser" for that particular extension.
There may be use cases where you want to give someone access to the options without giving him full permissions for the extension.

Solution

This PR adds a new ACL rule core.options which will allow to edit the options, but not the permissions.
I only did it for com_content so far, but if the concept is accepted I can easily add it to the other extensions as well. It's just an added line in the access.xml file and an added ACL check in each view where the options button should appear.

Testing

  • Create a second user and adjust the permissions in com_content so he can access the options but doesn't have "Configure" permissions.
  • Check with SuperUser and this new user if the options work as expected. SuperUser should be able to save the permissions. The new user should not see them and not be able to save them (even if he fakes the form).
  • Check also in other extensions that the SuperUser still can access and save the options and permissions. Nothing should have changed there.
avatar Bakual Bakual - open - 2 Nov 2014
avatar jissues-bot jissues-bot - change - 2 Nov 2014
Labels Added: ?
avatar brianteeman
brianteeman - comment - 3 Nov 2014

It works perfectly technically THANKS

I would suggest making some small changes to the UI (as it took me ages to get the settings correct)

Move Access Administration Interface to the top
As we have the space then change the label Configure to Configure ACL & Options and change Options to Configure Options only

avatar brianteeman brianteeman - change - 3 Nov 2014
Rel_Number 4954
Relation Type Related to
avatar brianteeman brianteeman - test_item - 3 Nov 2014 - Not tested
avatar Bakual
Bakual - comment - 3 Nov 2014

Updated the language strings and moved the new ACL above the "Access Administration Interface" so it's next to the "Configure" one. Should be less confusing this way.

avatar brianteeman
brianteeman - comment - 3 Nov 2014

Thanks - looks good to me

avatar brianteeman brianteeman - change - 3 Nov 2014
Category ACL Administration
avatar brianteeman brianteeman - test_item - 3 Nov 2014 - Tested successfully
avatar roland-d
roland-d - comment - 5 Nov 2014

@test Works as expected. The new user can configure the content options but not the permissions.

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

avatar roland-d
roland-d - comment - 5 Nov 2014

@test Works as expected. The new user can configure the content options but not the permissions.

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

avatar roland-d roland-d - test_item - 5 Nov 2014 - Tested successfully
avatar roland-d roland-d - change - 5 Nov 2014
Status Pending Ready to Commit
avatar losedk losedk - test_item - 6 Nov 2014 - Tested successfully
avatar peterlose
peterlose - comment - 6 Nov 2014

All good!

avatar brianteeman brianteeman - change - 29 Nov 2014
Labels Added: ?
avatar Bakual Bakual - close - 2 Dec 2014
avatar Bakual Bakual - change - 2 Dec 2014
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2014-12-02 19:48:43
avatar infograf768
infograf768 - comment - 7 Dec 2014

b001f2c has deleted the Trash and Empty Trash in the articles manager.
Reinstating it.

avatar Bakual
Bakual - comment - 7 Dec 2014

b001f2c has deleted the Trash and Empty Trash in the articles manager.
Reinstating it.

Hu? Why that?

avatar Bakual
Bakual - comment - 7 Dec 2014

Ah, see it now. Looks like a merge conflict with the previous moving of the buttons. Didn't catch that obviously.

avatar sanderpotjer
sanderpotjer - comment - 30 Apr 2017

@Bakual was looking into the history of core.options, and found this PR. Was there any specific reason to not include core.options in the Global Configurations of Joomla? Right now a user can't allow the core.options action from a global level to allow the action for all components that are using that action.

avatar Bakual
Bakual - comment - 30 Apr 2017

@sanderpotjer I'd bet on it just being an oversight on my part. Because I added it first in com_content only, it didn't made sense to have it in the global options. And when I added it to the remaining extensions it just popped up in my mind to add it to global as well.

avatar sanderpotjer
sanderpotjer - comment - 30 Apr 2017

@Bakual ok, thanks for the info! I will make a PR for this then.

Add a Comment

Login with GitHub to post a comment