?
avatar Giuse69
Giuse69
3 Jan 2018

Steps to reproduce the issue

Create article A in language L_A, create article B in language L_B and associate A to B.
Set article B as unpublished and with access = Registered.

Expected result

  1. Go to frontend as guest: you don't see any link to article in language L_B since you are not authorized to it and since it is not published.
  2. Go to backend: lower the Access Level of A to Public. Go to frontend: still no flag to indicate a version in another language.

Actual result

  1. Go to frontend as guest: Joomla does show the message "Also available in L_B" but if you click on the flag, of course you get an error of unauthorized view.
  2. Back to backend: lower the Access Level of A to Public. Go to frontend: the message is still there and clicking on the flag throws now a 404 error.

System information (as much as possible)

Joomla 3.8.3

Additional comments

Front-end should check access level and publishing state while publishing "Also available in ".

avatar Giuse69 Giuse69 - open - 3 Jan 2018
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jan 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 Jan 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Jan 2018
Category ACL Multilanguage
avatar brianteeman
brianteeman - comment - 3 Jan 2018

confirmed

avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Jan 2018
Status New Confirmed
avatar infograf768
infograf768 - comment - 4 Jan 2018

Not an easy one to solve as we have no information in the infoblock about the status of the associated item itself. Just its link and the status of the Content Language.
screen shot 2018-01-04 at 09 31 23

avatar Giuse69
Giuse69 - comment - 4 Jan 2018

We have the id: can we add just an SQL query that checks publishing state and access level and the latter is compared with getAuthorisedViewLevels($userId)?

avatar infograf768
infograf768 - comment - 6 Jan 2018

We could do something in the associations layout indeed, but we would need to also code something for the category default_articles.php
Not sure where we should add such a code that would be used by both and is not present in the layouts as it would not be a good idea to use queries there..

avatar infograf768
infograf768 - comment - 6 Jan 2018

I guess we could do something in ContentHelperAssociation
Looking into this unless someone does it before.

avatar infograf768
infograf768 - comment - 6 Jan 2018

Please test #19314

avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Jan 2018
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2018-01-06 18:11:28
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 6 Jan 2018
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 6 Jan 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 6 Jan 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Jan 2018

closed as having Pull Request #19314

Add a Comment

Login with GitHub to post a comment