? ? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
11 Jun 2019

Pull Request for Issue # .

Summary of Changes

Checks if user is authorised to access com_joomlaupdate.

Testing Instructions

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.

Expected result

Either the icon is not shown or no errors when viewing com_joomlaupdate.

Actual result

An error has occurred.

403 You are not authorised to view this resource. 

Documentation Changes Required

IDK.

avatar SharkyKZ SharkyKZ - open - 11 Jun 2019
avatar SharkyKZ SharkyKZ - change - 11 Jun 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Jun 2019
Category Front End Plugins
avatar brianteeman
brianteeman - comment - 11 Jun 2019

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"

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Jul 2019

@SharkyKZ whats the Status of this Pull Request? Will you take the Suggestion by @brianteeman?

avatar SharkyKZ SharkyKZ - change - 20 Jul 2019
Labels Added: ?
avatar SharkyKZ
SharkyKZ - comment - 20 Jul 2019

Not in 3.x.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Jul 2019

This PR can be tested?

avatar SharkyKZ
SharkyKZ - comment - 20 Jul 2019

Yes, I think so.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 21 Jul 2019

I have tested this item successfully on 03d140a


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 21 Jul 2019 - Tested successfully
avatar alikon
alikon - comment - 21 Jul 2019

I have tested this item successfully on 03d140a


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

avatar alikon alikon - test_item - 21 Jul 2019 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 21 Jul 2019
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 21 Jul 2019

Status "Ready To Commit".

avatar brianteeman
brianteeman - comment - 21 Jul 2019

This is really a bad idea as I stated before

avatar HLeithner
HLeithner - comment - 22 Jul 2019

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.

avatar HLeithner
HLeithner - comment - 8 Aug 2019

I'm not happy with this solution @SharkyKZ is it possible for you to change the PR as I described before.

Only remove the link if the user does not have the permission?

Thanks in advanced.

avatar brianteeman
brianteeman - comment - 8 Aug 2019

@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)

avatar HLeithner
HLeithner - comment - 8 Aug 2019

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.

avatar brianteeman
brianteeman - comment - 8 Aug 2019

The user doesn't know that there would be a link normally.

Of course they do - all the other quickicons are links

avatar Renuka-S Renuka-S - test_item - 19 Oct 2019 - Tested successfully
avatar Renuka-S
Renuka-S - comment - 19 Oct 2019

I have tested this item successfully on 50691ed

Icon not visible


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

avatar rdeutz rdeutz - change - 24 Nov 2019
Labels Added: ?
avatar HLeithner
HLeithner - comment - 5 Dec 2019

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.

avatar HLeithner HLeithner - close - 5 Dec 2019
avatar HLeithner HLeithner - change - 5 Dec 2019
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2019-12-05 22:31:21
Closed_By HLeithner
avatar SharkyKZ
SharkyKZ - comment - 6 Dec 2019

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.

avatar brianteeman
brianteeman - comment - 6 Dec 2019

The check does two things

  1. It tells you that the site needs to be updated
  2. It has a link to perform the update

As stated before simply hiding the icon is not a solution. The solution is to display something than other than a 403

avatar HLeithner
HLeithner - comment - 6 Dec 2019

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.

Add a Comment

Login with GitHub to post a comment