Show Unauthorised Links not working at article level

Did you find a bug in Joomla! 3.x but aren't sure? This forum is the place to help figure out if the problem is a bug and how to report it. If you are an experienced Joomla! user and are certain that you have found a bug please use the Bug Tracker to submit your issue.
This forum is for discussion about bugs and to get help with reporting them to the Bug Tracker: https://issues.joomla.org

Moderator: ooffick

Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
Locked
sokrates_mx5
Joomla! Explorer
Joomla! Explorer
Posts: 310
Joined: Tue Mar 24, 2009 12:30 pm

Show Unauthorised Links not working at article level

Post by sokrates_mx5 » Fri Feb 07, 2020 12:15 am

Show Unauthorised Links can be set in:
  • Global configuration (Articles)
    Menu level (Options)
    Article level (Options)
At the menu level one can choose to set Show Unauthorised Links to:
  • Use Global
    Use Article settings
    Yes
    No
When using the setting Yes at the Menu level the introduction of all articles that are restricted to Registered users are shown regardless of the setting of Show Unauthorised Links at the article level is set to Yes or No.

One could expect that when Use Article settings at the Menu level, it should only be those articles where Show Unauthorised Links are set to Yes for each article that should be shown, but that is not the case. It doesn't matter if Show Unauthorised Links are set to Yes or No at the article level, they're all shown like when the setting of Show Unauthorised Links in the Menu level was set to Yes.

Here is a link to the documentation: https://docs.joomla.org/Restricting_acc ... read_more"

Is there a bug in Joomla that prevents setting Show Unauthorised Links individually for each article?
Last edited by toivo on Sun Feb 09, 2020 5:24 am, edited 1 time in total.
Reason: mod note: moved from 3.x General Questions

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44098
Joined: Sat Apr 05, 2008 9:58 pm

Re: Show Unauthorised Links not working at article level

Post by Webdongle » Fri Feb 07, 2020 1:11 am

Where is the readmore in the Articles?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: Show Unauthorised Links not working at article level

Post by leolam » Fri Feb 07, 2020 8:02 am

Settings in menu links always overwrite 'global' settings in components

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

sokrates_mx5
Joomla! Explorer
Joomla! Explorer
Posts: 310
Joined: Tue Mar 24, 2009 12:30 pm

Re: Show Unauthorised Links not working at article level

Post by sokrates_mx5 » Fri Feb 07, 2020 8:41 am

Webdongle wrote:
Fri Feb 07, 2020 1:11 am
Where is the readmore in the Articles?
I'm not really sure what you mean with "Where is the readmore in the Articles?".

The Readmore is shown below the intro text of the articles. The location of Readmore is joomla default. I do not use any plugin or css customization for the location of Readmore (viewtopic.php?t=479524).

The "Positioning of the Links" was set to Above, but it do not make a difference if it's changed to Below. Honestly, I'm not sure what the "Positioning of the Links" do and when searching I don't find much information either, besides what can be found in the help:

Positioning of the Links. (Above/Below). If there are links associated with this article, whether to show them above or below the article.

I'm using the Protostar template.

sokrates_mx5
Joomla! Explorer
Joomla! Explorer
Posts: 310
Joined: Tue Mar 24, 2009 12:30 pm

Re: Show Unauthorised Links not working at article level

Post by sokrates_mx5 » Fri Feb 07, 2020 9:02 am

leolam wrote:
Fri Feb 07, 2020 8:02 am
Settings in menu links always overwrite 'global' settings in components

Leo 8)
Yes, I understand it as the Global settings is what is used when using default settings. The settings in the Menu is overriding the Global settings when another setting then the Global setting is chosen. The problem is that the settings in the Article should override the Global and Menu settings if chosen another setting then default, but it doesn't matter if the setting in Article is set to Yes or No since it generate the same result.

It's also a bit confusing with the alternative "Use Article Setting" in the Menu settings. One could expect that the setting in the Article should override the setting in the Menu settings regardless what has been chosen and then there would be no need for the alternative "Use Article Setting". Even how, it do not matter if the Menu setting in is set to "Use Article Setting" or Yes, since the Article setting doesn't seam to override the setting in Menu.

When looking at the help for the Menu settings the alternative "Use Article Setting" is not even shown:

Show Unauthorised Links. (Use Global/No/Yes). If Yes, the Intro Text for restricted articles will show. Clicking on the "Read More" link will require users to log in to view the full article content.

Something seams to be od with the settings at the Menu and Article level.

The help for the Article settings shows:

Show Unauthorised Links. (Use Global/No/Yes). If Yes, the Intro Text for restricted articles will show. Clicking on the "Read More" link will require users to log in to view the full article content.

It's like the setting of "Show Unauthorised Links" in Article do not work since the result is the same regardless if it set to Yes or No and it doesn't matter of the setting in Menu is Yes or Use Article Setting.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44098
Joined: Sat Apr 05, 2008 9:58 pm

Re: Show Unauthorised Links not working at article level

Post by Webdongle » Fri Feb 07, 2020 10:23 am

You need a readmore in the Article otherwise all the Articles text will show. This is because if there is no Readmore break in the Article then all the Article text is treated as 'Intro text'.

So I ask again ... Where is the readmore in the Articles?

Just tested and Category blog and 'Use Article settings' shows the 'Intro text'.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

sokrates_mx5
Joomla! Explorer
Joomla! Explorer
Posts: 310
Joined: Tue Mar 24, 2009 12:30 pm

Re: Show Unauthorised Links not working at article level

Post by sokrates_mx5 » Fri Feb 07, 2020 1:03 pm

Webdongle wrote:
Fri Feb 07, 2020 10:23 am
You need a readmore in the Article otherwise all the Articles text will show. This is because if there is no Readmore break in the Article then all the Article text is treated as 'Intro text'.

So I ask again ... Where is the readmore in the Articles?

Just tested and Category blog and 'Use Article settings' shows the 'Intro text'.
I understand that I need a Readmore in the article. The Readmore is placed in the article after the first paragraph (intro text) and the rest of the text.

The problem is that the intro of all articles are shown for the public, even those articles (restricted to registered users) where the Article setting of Show Unauthorised Links is set to No, when the Menu setting is Use Article settings.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44098
Joined: Sat Apr 05, 2008 9:58 pm

Re: Show Unauthorised Links not working at article level

Post by Webdongle » Fri Feb 07, 2020 2:20 pm

That is how 'Show unauthorised' works. The intro text is shown in the Category blog.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

sokrates_mx5
Joomla! Explorer
Joomla! Explorer
Posts: 310
Joined: Tue Mar 24, 2009 12:30 pm

Re: Show Unauthorised Links not working at article level

Post by sokrates_mx5 » Fri Feb 07, 2020 11:00 pm

Webdongle wrote:
Fri Feb 07, 2020 2:20 pm
That is how 'Show unauthorised' works. The intro text is shown in the Category blog.
I understand that the intro text is expected to be shown in the Category blog, but I also expect that there should b a difference between Yes and No at the article level. I want to choose some individual intro of articles that are restricted to registered users to be shown in the category blog with the "Readmore button restricted to registered users" (Yes at article level) and other articles only to be shown when registered users are logged in (No at article level).

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44098
Joined: Sat Apr 05, 2008 9:58 pm

Re: Show Unauthorised Links not working at article level

Post by Webdongle » Fri Feb 07, 2020 11:20 pm

Does not the readmore button (when seen by non logged in visitor) show 'Login to readmore'?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

sokrates_mx5
Joomla! Explorer
Joomla! Explorer
Posts: 310
Joined: Tue Mar 24, 2009 12:30 pm

Re: Show Unauthorised Links not working at article level

Post by sokrates_mx5 » Fri Feb 07, 2020 11:21 pm

I might have to try to explain things better.

Show Unauthorised Links can be set in:

Global configuration (Articles)
Menu level (Options)
Article level (Options)

Global setting of Show Unauthorised Links:
  • Yes
    No
Menu setting of Show Unauthorised Links:
  • Use Global (Yes/No)
    Use Article settings
    Yes
    No
Article setting of Show Unauthorised Links:
  • Use Global (Yes/No)
    Yes
    No
The Global setting is expected to be inherited from Global to Menu to Article. If another setting then Use Global is used at the Menu level, then that setting is expected to be inherited to the articles that are included in that menu. One can expect that the setting at the Article should affect the individual article, but that is not the case.

The following settings produce the same behaviour, which is strange:

Global: No
Menu: Use Article settings
Article: Yes

Global: No
Menu: Use Article settings
Article: No

Global: No
Menu: Yes
Article: Yes

Global: No
Menu: Yes
Article: No

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44098
Joined: Sat Apr 05, 2008 9:58 pm

Re: Show Unauthorised Links not working at article level

Post by Webdongle » Fri Feb 07, 2020 11:45 pm

Global: No
Menu: Use Article settings
Article: Yes
The Article setting of Yes is used


Global: No
Menu: Use Article settings
Article: No
The Article setting of No is used


Global: No
Menu: Yes
Article: Yes
The Menu setting Yes is used ... the Article setting is ignored.



Global: No
Menu: Yes
Article: No
The Menu setting Yes is used ... the Article setting is ignored.


Menu: Use Global
The Global setting is used ... The Menu setting Yes is used ... the Article setting is ignored.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

sokrates_mx5
Joomla! Explorer
Joomla! Explorer
Posts: 310
Joined: Tue Mar 24, 2009 12:30 pm

Re: Show Unauthorised Links not working at article level

Post by sokrates_mx5 » Sat Feb 08, 2020 12:46 am

Webdongle wrote:
Fri Feb 07, 2020 11:45 pm
Global: No
Menu: Use Article settings
Article: Yes
The Article setting of Yes is used

Global: No
Menu: Use Article settings
Article: No
The Article setting of No is used
Shouldn't these two different settings generate a different behaviour?

I get the same behaviour with these two settings. The intro is shown with the Readmore for registered user button for all articles within this menu that are restricted to Registered users, regardless if the Article setting is Yes or No. I expected that articles that are set to No shouldn't have any intro shown to Public users that are not logged in, but this is not the case.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44098
Joined: Sat Apr 05, 2008 9:58 pm

Re: Show Unauthorised Links not working at article level

Post by Webdongle » Sat Feb 08, 2020 9:59 am

Global: No
Menu: Use Article settings
Article: Yes
The Article setting of Yes is used
Non logged in visitors see intro text in Category/featured blog.
Is that how it is for you?




Global: No
Menu: Use Article settings
Article: No
The Article setting of No is used
Non logged in visitors Don't see intro text in Category/featured blog.
Is that how it is for you?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

sokrates_mx5
Joomla! Explorer
Joomla! Explorer
Posts: 310
Joined: Tue Mar 24, 2009 12:30 pm

Re: Show Unauthorised Links not working at article level

Post by sokrates_mx5 » Sat Feb 08, 2020 12:13 pm

Webdongle wrote:
Sat Feb 08, 2020 9:59 am
Global: No
Menu: Use Article settings
Article: Yes
The Article setting of Yes is used
Non logged in visitors see intro text in Category/featured blog.
Is that how it is for you?




Global: No
Menu: Use Article settings
Article: No
The Article setting of No is used
Non logged in visitors Don't see intro text in Category/featured blog.
Is that how it is for you?
No, it is like this:

Global: No
Menu: Use Article settings
Article: Yes
The Article setting of Yes is used
Non logged in visitors see intro text in Category/featured blog

Global: No
Menu: Use Article settings
Article: No
The Article setting of No is used
Non logged in visitors see intro text in Category/featured blog

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44098
Joined: Sat Apr 05, 2008 9:58 pm

Re: Show Unauthorised Links not working at article level

Post by Webdongle » Sat Feb 08, 2020 5:30 pm

Set Protostar as default Template then see?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

sokrates_mx5
Joomla! Explorer
Joomla! Explorer
Posts: 310
Joined: Tue Mar 24, 2009 12:30 pm

Re: Show Unauthorised Links not working at article level

Post by sokrates_mx5 » Sat Feb 08, 2020 6:27 pm

Webdongle wrote:
Sat Feb 08, 2020 5:30 pm
Set Protostar as default Template then see?
Should have mention that I use the Protostar template.

PHP Version: 7.3.11.
Joomla Version: 3.9.15
Joomla Platform Version: 13.1.0

Does anyone else experience the same strange behavior?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44098
Joined: Sat Apr 05, 2008 9:58 pm

Re: Show Unauthorised Links not working at article level

Post by Webdongle » Sat Feb 08, 2020 7:05 pm

OK have checked and it is not working as expected (imho) . Have created an issue https://issues.joomla.org/tracker/joomla-cms/27856 ... please feel free to confirm it on that board.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

sokrates_mx5
Joomla! Explorer
Joomla! Explorer
Posts: 310
Joined: Tue Mar 24, 2009 12:30 pm

Re: Show Unauthorised Links not working at article level

Post by sokrates_mx5 » Sat Feb 08, 2020 7:46 pm

Webdongle wrote:
Sat Feb 08, 2020 7:05 pm
OK have checked and it is not working as expected (imho) . Have created an issue https://issues.joomla.org/tracker/joomla-cms/27856 ... please feel free to confirm it on that board.
Thanks, it's good to know that I'm not the only one experience this issue. I've posted a comment to your the issue you've created.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44098
Joined: Sat Apr 05, 2008 9:58 pm

Re: Show Unauthorised Links not working at article level

Post by Webdongle » Mon Feb 10, 2020 1:57 pm

Update
brian and mbabker said it is to be reported to the security team. I have done so but as yet have heard nothing about it.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44098
Joined: Sat Apr 05, 2008 9:58 pm

Re: Show Unauthorised Links not working at article level

Post by Webdongle » Mon Feb 10, 2020 4:35 pm

Another update.
It has been suggested that rather than fix it ... the option to use Article settings is removed.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Locked

Return to “Joomla! 3.x Bug Reporting”