User tests: Successful: Unsuccessful:
Pull Request for Issue #18397
Check access to subcategories.
See #18397
Before patch, subcategories display even if they are set to registered access. Clicking on their title gets a 403.
After patch the registered subcategories do not display until the user has logged in.
Category | ⇒ | Front End com_content |
Status | New | ⇒ | Pending |
@infograf768 there is only one changed line in the pr
Nope. You have only seen +$user = JFactory::getUser();
look further and please test
+ <?php $groups = $user->getAuthorisedViewLevels(); ?>
+ <?php // Check whether category access level allows access to subcategories. ?>
+ <?php if (in_array($child->access, $groups)) : ?>
and obvioulsy a new endif before endforeach
Labels |
Added:
?
|
Needs tests, folks. thanks.
I have tested this item
tested successfully for article category blog but shouldnt the same change be made for article category list
luckily the contacts component does not have the same issue
I have tested this item
It would be good to do the same for beez3 template?
Status | Pending | ⇒ | Ready to Commit |
RTC after two successful tests.
yes to both i.e list and beez.
Based on comments does this need further updates?
Labels |
Added:
?
|
Category | Front End com_content | ⇒ | Front End com_content Templates (site) |
Updated:
Added similar code for category list and blog/list for Beez.
@brianteeman
@csthomas
Please test again
Status | Ready to Commit | ⇒ | Pending |
Labels |
Restarted travis as php 5.6 did not complete.
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC after two successful tests.
Title |
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-10-27 13:35:32 |
Closed_By | ⇒ | mbabker | |
Labels |
Indentation had to be changed which explains why this patch looks so big.
real code changes are very small.