Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also available in other language does not respect publishing status and Access Level #19279

Closed
Giuse69 opened this issue Jan 3, 2018 · 8 comments

Comments

@Giuse69
Copy link
Contributor

Giuse69 commented Jan 3, 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 ".

@brianteeman
Copy link
Contributor

confirmed

@infograf768
Copy link
Member

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

@Giuse69
Copy link
Contributor Author

Giuse69 commented Jan 4, 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)?

@infograf768
Copy link
Member

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..

@infograf768
Copy link
Member

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

@infograf768
Copy link
Member

Please test #19314

@joomla-cms-bot
Copy link

Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/19279

@ghost
Copy link

ghost commented Jan 6, 2018

closed as having Pull Request #19314

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants