-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Article for registred visible to all #11285
Comments
Did you set the menu item to registered or the article, or both? If it was only the menu item, that'd only change when that part is displayed, so if the article is set to public you need to change that as well. |
The menu item is public. |
@tonicopi
If it does then this is normal behavior, it is a feature that can be useful to your web-site, just add the text that you need to be visible to ALL users, before the read-more In article view
is the above the case ? |
NO the article has no Read More Regards Tonicopi Il 24/07/2016 16:42, Georgios Papadakis ha scritto:
|
If you add read-more to it, then does it works as described above ? |
Yes Please try the following steps:
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11285. |
I can confirm. It's an ACL violation. Steps to reproduce the issue
Expected result Actual result |
If you add a read more in the article, you can see properly the Intro text and it asks for Login/registration to see the complete content. If you set "Show unauthorized links" to No, the article is not visible. |
I don't think so. If you set "Show unauthorized links" to yes you agree that title and introtext (a field in the database) are shown to everybody. Images, field fulltext and links to the article are not shown. Otherwise the setting "Show unauthorized links" would be senseless. Changing this behavior would be a B\C break. If there's no readmore marker inside the article the whole text is saved in database field introtext. Maybe the description could be more clear?
|
So is it a requirement that the article has a read more , when "Show unauthorized links" is set to "Yes" ? Originally this setting was meant for category view to show intro-text (and intro image) of non-privileged content and link to article view with a redirection to login ? , but then
article view was also modified to show intro image and intro-text , right ?? First, the DB model does well to allow this, (=behaves according to configuration) So it is not an ACCESS violation, it seems to me that
|
@bertmert , I agree on Intro Text and other informations. |
I confirm the issue This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11285. |
Joomla works like this at least since Joomla 1.5. Changing it would be a B\C break. See an example with Joomla 1.5 Article "We are Volunteers":
Without readmore:With readmore:
There is no fulltext in database if there's no readmore. One possibility could be to add a further configuration option "Hide introtext, too" or something. = new feature. Another one is to handle it via template overrides.
|
you show category view, yes, it is like this for a long time about article view it also seems to be like this a long time, (i checked github history of the template file) Was there ever a check in article view ?: if no read-more (thus no full-text too) and no-view-access on article, |
Ah, sorry! The opener of this issue talked about article, later on about category blog.
As far as I remember, no. In Joomla 1.5 the single article view was blocked completely. Just a login. Only the blog showed the introtext. Reason is that in 1.5 only menu item had an option "Show Unauthorised Links". 2.5 had only a similiar check like in current staging: Another find: If "Show Unauthorised Links" is YES and "Show Intro Text" is HIDE (in article and a menu pointing to this article) I see this (intro text): If "Show Unauthorised Links" is NO I don't see a login form like in Joomla 1.5 |
@bertmert I know that without readmore there's no FullText, but, I think you can agree that in this case the ACL on the Article will be ignored and this is not right. |
Well, yes and no. The specific configuration allows for it to be bypassed On Sunday, July 24, 2016, Luca Marzo notifications@github.com wrote:
|
This specific configuration ignore the ACL of the article. If it's not a real issue, it's a "particular behaviour" and we need to document it. |
Right, it's a very explicit circumstance based on configuring another feature. Unless you've got a better way to handle the feature, this particular set of circumstances is a side effect of having it. |
otherwise we need a check, if the FullText field is empty and the article is set as Registered (or whatever that is not Public) we can show only the title and prompt the login (same behaviour in case of readmore). |
ok, if this is added, then yes we check if fulltext is empty
Natural place to add this
i have made a PR #11290 |
I am closing this as we have a PR for testing see #11290 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11285. |
Thank you @ggppdk :) |
Steps to reproduce the issue
1 - Create a menu item pointing to an article for registered users
2 - In the general options of Content set YES on Show Unauthorised Links
3 - Click in the menu item of point 1 without being logged into the site
Expected result
I was expecting a message asking me to register.
Actual result
Instead I read the article, also google can read it then shows it to the world!
System information (as much as possible)
Additional comments
The text was updated successfully, but these errors were encountered: