?
Referenced as Pull Request for: # 7313
avatar brianteeman
brianteeman
1 Jul 2015

I have not been able to replicate this myself but there are multiple reports on the forum.

Basically when creating a new article or category the access is being set to Guest and not public.

See http://forum.joomla.org/viewtopic.php?f=706&t=890720&p=3314030#p3314030

avatar brianteeman brianteeman - open - 1 Jul 2015
avatar nonumber
nonumber - comment - 2 Jul 2015

PS: this concerns the default access level, not user group.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7311.

avatar zero-24
zero-24 - comment - 2 Jul 2015

hmm maybe a pre select? So that the access level is set per search tools? That would explain why you can't reproduce :smile:

PR was: #6966

avatar infograf768
infograf768 - comment - 2 Jul 2015

I confirm the issue for New article and New category. Nothing selected in Search Tools.

avatar nonumber
nonumber - comment - 2 Jul 2015

Commenting out that line seems to fix the isse:

$data->set('access', $app->input->getInt('access', (isset($filters['access']) ? $filters['access'] : null)));

in /administrator/components/com_content/models/article.php

avatar Bakual
Bakual - comment - 2 Jul 2015

To reproduce change the default access level to something else.

avatar Bakual
Bakual - comment - 2 Jul 2015

The problem is that that PR set the property to null. It should probably instead set it to JFactory::getConfig()->get('access') similar to what JTable does: https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/table/table.php#L182-L186.
Or just leave it alone and let JTable handle it.

avatar nonumber
nonumber - comment - 2 Jul 2015

I think it would be best to remove that line all together.
Otherwise this would fix it:

$data->set('access', $app->input->getInt('access', ((isset($filters['access']) && $filters['access'] != '') ? $filters['access'] : JFactory::getConfig()->get('access'))));
avatar Bakual
Bakual - comment - 2 Jul 2015

See #7313

Closing as we have a PR.

avatar Bakual Bakual - change - 2 Jul 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-07-02 08:14:47
Closed_By Bakual
avatar Bakual Bakual - close - 2 Jul 2015
avatar Bakual Bakual - close - 2 Jul 2015
avatar prankyboy
prankyboy - comment - 2 Jul 2015

Anche creando nuovo modulo html l'accesso risulta solo per guest


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7311.

avatar nonumber
nonumber - comment - 2 Jul 2015

Also fixed with PR #7313

Add a Comment

Login with GitHub to post a comment