? Success

User tests: Successful: Unsuccessful:

avatar hikashop-jerome
hikashop-jerome
17 Oct 2016

Summary of Changes

In the view, the buttons were just display to the super users ; but in the controller the checks where still made according to the access level and the "core.edit" on "com_templates".
To keep a cohesion between the view, the controller and the Joomla ACL system ; the button should be displayed in the view.

Testing Instructions

As a non super user account but with "admin" and "edit" ACL on "com_templates", go in the template manager.
The list of files won't be visible, the account will only see the "readonly" view.

Going further

In order to make a difference between the right to edit the template settings and the right to edit the template files ; it could be interesting to add a new entry in the access.xml file.
Thanks to that, in the controller, it would be possible to make the according checks and not authorize user to modify the files (or perform action like compiling the less).
Because even if the user cannot see the file content via the editor, he can still submit data to modify them.

Documentation Changes Required

None

avatar hikashop-jerome hikashop-jerome - open - 17 Oct 2016
avatar hikashop-jerome hikashop-jerome - change - 17 Oct 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Oct 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 17 Oct 2016
Category Administration Components
avatar mbabker
mbabker - comment - 17 Oct 2016

FYI it was a very intentional decision to lock down this part of the template manager to super users only.

avatar brianteeman
brianteeman - comment - 17 Oct 2016

I am closing this as it is the expected behaviour

In order to make a difference between the right to edit the template settings and the right to edit the template files ; it could be interesting to add a new entry in the access.xml file.

this already exists ;)

avatar brianteeman brianteeman - change - 17 Oct 2016
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-10-17 13:14:40
Closed_By brianteeman
avatar brianteeman brianteeman - close - 17 Oct 2016
avatar hikashop-jerome
hikashop-jerome - comment - 17 Oct 2016

I am quite sure it was an intentional decision to lock down that part to the super users only but in that case, the controller should be updated as well ; otherwise it could looks like a security issue.

Add a Comment

Login with GitHub to post a comment