? ? Pending

User tests: Successful: Unsuccessful:

avatar carlitorweb
carlitorweb
5 Jan 2023

Pull Request for Issue #39559

I used the core string JLIB_LOGIN_DENIED = Your access has been denied. But I think we should create a new one just for this message

Summary of Changes

PlgAuthenticationJoomla verified is a valid user who try to access, but not check the permission of the offline mode.

Testing Instructions

Set your site in offline mode. Go to the frontend and try login with a user who have the permission Offline Access = Not allowed

Actual result BEFORE applying this Pull Request

The user cant login, but not message show up of why cant login

Expected result AFTER applying this Pull Request

The user cant login, but a message show up of why cant login

avatar joomla-cms-bot joomla-cms-bot - change - 5 Jan 2023
Category Front End Plugins
avatar carlitorweb carlitorweb - open - 5 Jan 2023
avatar carlitorweb carlitorweb - change - 5 Jan 2023
Status New Pending
avatar richard67
richard67 - comment - 6 Jan 2023

@carlitorweb As the check added by this PR is in the else part of an $this->app->isClient('administrator') check, it doesn't only apply to the site but also to other non-admin clients like api and cli. Is that intended?

avatar carlitorweb
carlitorweb - comment - 6 Jan 2023

@richard67 For API dont matter. Right now, an unique Bearer token or credentials need be provided in the request. The later have his own separate routine for authenticate the user Joomla\Plugin\ApiAuthentication\Basic\Extension\Basic (by the way is almost the same as PlgAuthenticationJoomla)

I did not interact much with the CLI yet, but I tested for example, when offline the site I could add a new user trought the CLI without problem. I not think so far this change affect the CLI application. Anyway, let me kown if anything need be changed.

avatar carlitorweb carlitorweb - change - 6 Jan 2023
Labels Added: ?
avatar carlitorweb
carlitorweb - comment - 7 Jan 2023

@richard67 can you run the drone again, not sure why fail

avatar Quy Quy - test_item - 23 Jan 2023 - Tested successfully
avatar Quy
Quy - comment - 23 Jan 2023

I have tested this item successfully on 0f48b71


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

avatar viocassel viocassel - test_item - 25 Jan 2023 - Tested successfully
avatar viocassel
viocassel - comment - 25 Jan 2023

I have tested this item successfully on 0f48b71


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

avatar Quy Quy - change - 25 Jan 2023
Status Pending Ready to Commit
avatar Quy
Quy - comment - 25 Jan 2023

RTC


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

avatar carlitorweb carlitorweb - change - 23 Feb 2023
Labels Added: ?
avatar fancyFranci fancyFranci - change - 26 Feb 2023
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-02-26 19:57:47
Closed_By fancyFranci
avatar fancyFranci fancyFranci - close - 26 Feb 2023
avatar fancyFranci fancyFranci - merge - 26 Feb 2023
avatar fancyFranci
fancyFranci - comment - 26 Feb 2023

Thank you for making it easier for the users!

Add a Comment

Login with GitHub to post a comment