?
avatar rubenreyes2000
rubenreyes2000
1 Sep 2020

Is your feature request related to a problem? Please describe.

Currently the PHP version alert generated by the phpversioncheck plugin is shown to all users logged in to the backend (administrator).

Describe the solution you'd like

Display the alerts generated by the phpversioncheck plugin only to Super Users, the same way that the plugins extensionupdate and joomlaupdate work.

Specifically change plugins/quickicon/phpversioncheck/phpversioncheck.php line 225 to

if (!JFactory::getUser()->authorise('core.manage', 'com_installer'))

or

if (!JFactory::getUser()->authorise('core.admin'))

Additional context

avatar rubenreyes2000 rubenreyes2000 - open - 1 Sep 2020
avatar joomla-cms-bot joomla-cms-bot - change - 1 Sep 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Sep 2020
avatar brianteeman
brianteeman - comment - 1 Sep 2020

This way they will hopefully nag their sys admin to update php

avatar ReLater
ReLater - comment - 1 Sep 2020

Solution:

  • Create an Access Level for Super Users only if it doesn't exist already.
  • Set "Access" to this group in plugin phpversioncheck.
avatar rubenreyes2000
rubenreyes2000 - comment - 3 Sep 2020

@brianteeman that makes sense but, in that case extensionupdate and joomlaupdate should behave the same way. I understand where you are coming from with this approach, and I know that many admins need that kind of push. However, I don't think unnecessarily annoying or worrying non-technical users makes for a good user-experience. Specially when these alerts show up many months before there is any danger or issue.

@ReLater that's a good workaround, thank you. But it's a lot of work when managing many sites for clients. It would be better if Joomla doesn't show alerts that are really not appropriate for all users to see.

avatar ReLater
ReLater - comment - 4 Sep 2020

that's a good workaround, thank you. But it's a lot of work when managing many sites for clients. It would be better if Joomla doesn't show alerts that are really not appropriate for all users to see.

When you install a fresh Joomla the Super User access level is already there. So I see just some clicks as "work" (even if you have to create that view level on your own). I see more awkward work and confusion for others if Joomla would establish your solution because there are also users that want it like it is. Your solution is a one-way street.

avatar rubenreyes2000
rubenreyes2000 - comment - 4 Sep 2020

I am sure this is the change that will cause confusion, and that the inconsistent behavior is then justified.
While I am disappointed such a minute change for improving UX would not be consider, I thank you for taking the time to respond. Most OSS projects don't even do that. I will close this now since no action will be taken.

avatar rubenreyes2000 rubenreyes2000 - close - 4 Sep 2020
avatar rubenreyes2000 rubenreyes2000 - change - 4 Sep 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-09-04 09:55:41
Closed_By rubenreyes2000
avatar ReLater
ReLater - comment - 4 Sep 2020

since no action will be taken.

I don't have to decide that. I'm just arguing from my point of view. Provide a pr and you will see if production leads are willing to merge it!

Add a Comment

Login with GitHub to post a comment