? ? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
18 Jun 2020

While working in this area, noticed bad use of if statements so refactored it a little

This fixes nothing - it just improves code readability and implements best practices

Summary of Changes

Refactor to apply concept of "return early" by throwing NotAllowed exceptions if ACL fails

Testing Instructions

use com_contenthistory - nothing should be broken, ACL should correctly error, this time with NotAllowed exceptions

Expected result

Nothing broken

Documentation Changes Required

None

avatar PhilETaylor PhilETaylor - open - 18 Jun 2020
avatar PhilETaylor PhilETaylor - change - 18 Jun 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Jun 2020
Category Administration com_content com_contenthistory
avatar PhilETaylor PhilETaylor - change - 18 Jun 2020
The description was changed
avatar PhilETaylor PhilETaylor - edited - 18 Jun 2020
avatar PhilETaylor PhilETaylor - change - 18 Jun 2020
Labels Added: ?
f35290f 19 Jun 2020 avatar PhilETaylor cs
avatar Quy Quy - test_item - 28 Jun 2020 - Tested successfully
avatar Quy
Quy - comment - 28 Jun 2020

I have tested this item successfully on 28b8b81


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

avatar PhilETaylor
PhilETaylor - comment - 8 Jul 2020

@richard67 Just needs one more human test (if you have time please) to get to RTC.

avatar SharkyKZ
SharkyKZ - comment - 8 Jul 2020

Update doc blocks.

avatar PhilETaylor
PhilETaylor - comment - 8 Jul 2020

Done.

avatar alikon alikon - test_item - 8 Jul 2020 - Tested successfully
avatar alikon
alikon - comment - 8 Jul 2020

I have tested this item successfully on 8ef304d


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

avatar Quy Quy - test_item - 9 Jul 2020 - Tested successfully
avatar Quy
Quy - comment - 9 Jul 2020

I have tested this item successfully on 8ef304d


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

avatar Quy Quy - change - 9 Jul 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 9 Jul 2020

RTC


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

avatar richard67 richard67 - change - 20 Jul 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-07-20 19:19:35
Closed_By richard67
Labels Added: ?
avatar richard67 richard67 - close - 20 Jul 2020
avatar richard67 richard67 - merge - 20 Jul 2020
avatar richard67
richard67 - comment - 20 Jul 2020

Thanks!

Add a Comment

Login with GitHub to post a comment