User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Checks if user is authorised to access com_joomlaupdate
.
Create a user group with backend access. Configure permissions:
Set Installer - Access Administration Interface
(com_installer.core.manage
) permissions to Allow
.
Set Joomla! Update - Configure ACL & Options
(com_joomlaupdate.core.admin
) permissions to Deny
.
Create a user in this group, login with this user.
In control panel, click on Joomla! update quick icon.
Either the icon is not shown or no errors when viewing com_joomlaupdate
.
An error has occurred.
403 You are not authorised to view this resource.
IDK.
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
@SharkyKZ whats the Status of this Pull Request? Will you take the Suggestion by @brianteeman?
Labels |
Added:
?
|
Not in 3.x.
This PR can be tested?
Yes, I think so.
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Status "Ready To Commit".
This is really a bad idea as I stated before
I don't like the change it would be better to remove the link and only show that a new version is available if you can't update as the current user.
If you like to disable the quick icon the admin can change the access level of the plugin.
@HLeithner disabling the link will just frustrate the user - there needs to be a message. The current code behaviour is correct its just the message that should be changed #25169 (comment)
The user doesn't know that there would be a link normally. Giving him a message saying you can't update brings him not more information as he already has but if you find that better you can add a PR.
As long as it doesn't end in an error message it's ok for me.
The user doesn't know that there would be a link normally.
Of course they do - all the other quickicons are links
I have tested this item
Icon not visible
Labels |
Added:
?
|
Thanks for this pr but I will not merge it, I would like to see no link or a proper error message. But only showing it to admin can be achieved by setting a proper access level to the plugin.
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-12-05 22:31:21 |
Closed_By | ⇒ | HLeithner |
It's showing only to super admin because that's what com_joomlaupdate
requires. This PR makes perceived behavior consistent with extension update check plugin.
The check does two things
As stated before simply hiding the icon is not a solution. The solution is to display something than other than a 403
That's the reason I closed it, it would be better to bring a popup/alert window/what ever to tell the user he/she has to inform a super user.
My 2c is that we absolutely should show the icon and if there are updates available but it does need something better than the 403 if they are not authorised. Perhaps some sort of message "Please contact the site administrator to update"