? ? Pending

User tests: Successful: Unsuccessful:

avatar heelc29
heelc29
24 Dec 2022

Summary of Changes

The permission for show the quickicon and the link/ajax do not match (com_installer vs. com_templates)

if ($context !== $this->params->get('context', 'update_quickicon') || !$this->app->getIdentity()->authorise('core.manage', 'com_installer')) {
return array();
}
$token = Session::getFormToken() . '=1';
$options = array(
'url' => Uri::base() . 'index.php?option=com_templates&view=templates',
'ajaxUrl' => Uri::base() . 'index.php?option=com_templates&view=templates&task=template.ajax&' . $token,
'pluginId' => $this->getOverridePluginId(),
);

Testing Instructions

Check the admin dashboard with a user with these permissions:
image

Actual result BEFORE applying this Pull Request

Ajax request get 403 status (forbidden)
image
image

When you click on the quickicon
image

Expected result AFTER applying this Pull Request

The quickicon is no longer displayed

Now if you swap permissions for com_installer/com_templates, the quickicon works correctly:
image
image

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed
  • No documentation changes for manual.joomla.org needed

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar joomla-cms-bot joomla-cms-bot - change - 24 Dec 2022
Category Front End Plugins
avatar heelc29 heelc29 - open - 24 Dec 2022
avatar heelc29 heelc29 - change - 24 Dec 2022
Status New Pending
avatar carlitorweb carlitorweb - test_item - 25 Dec 2022 - Tested successfully
avatar carlitorweb
carlitorweb - comment - 25 Dec 2022

I have tested this item successfully on 9427139

Note: For get the right permission the test require, is enough with create a user under Registered group and add the "Access Administration Access" from the global configuration permissions. From there you can follow the test indication.


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

avatar viocassel viocassel - test_item - 28 Dec 2022 - Tested successfully
avatar viocassel
viocassel - comment - 28 Dec 2022

I have tested this item successfully on 9427139


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

avatar Quy Quy - change - 28 Dec 2022
Status Pending Ready to Commit
Labels Added: ?
avatar Quy
Quy - comment - 28 Dec 2022

RTC


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

avatar roland-d roland-d - change - 29 Dec 2022
Labels Added: ?
avatar roland-d roland-d - close - 29 Dec 2022
avatar roland-d roland-d - merge - 29 Dec 2022
avatar roland-d roland-d - change - 29 Dec 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-12-29 11:15:26
Closed_By roland-d
avatar roland-d
roland-d - comment - 29 Dec 2022

Thank you

Add a Comment

Login with GitHub to post a comment