User tests: Successful: Unsuccessful:
Pull Request resolves #46896 .
As reported in the issue it is confusing for users who are not super users that they can create an admin module such as Latest User Actions but then do not see the module on their site.
This is because the module is hard coded to only be displayed to super users and ignores the setting in the View Access select for the module.
This PR is an alternative to #47295 which took the approach of hiding the module from the select new module page but did not prevent a non super-user from being able to edit/delete an existing module of this type.
This PR takes a different approach - instead of preventing a non super user being able to create (or even edit) a module with this restriction we simply add text information to inform the user that the module they are creating/editing is only visible to super users.
I believe this is the better approach as it doesn't require any significant code change or change in the user experience for creating admin modules AND we now tell all users that this specific module is only visible to Super Users. (Without this PR they will never know about the restriction as its buried in the code and doesnt use the normal View Access setting)
This PR should be considered a proof of concept so I only added the extra information to ONE of the modules that has this restriction. If accepted then I would update the PR to do the same for the other Super User only modules.
For this reason the language string used is in COM_MODULES.INI and not in MOD_LATESTSACTIONS.INI so that we can re-use the same string in all modules.
This is only a visual change in the admin UI and is the same for all users
Apply PR and then either open an existing Lastes Actions module or create a new one
The original issue was opened against 5.4 but I dont consider it a bug
Additionally as its a new language string we can't do that in a patch release
Obviously I would like to see this merged as soon as possible but if it is considered to be too late for 6.1 then it should be pushed to 6.2
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration Language & Strings Modules |