Geeklog-Core / geeklog

Geeklog - The Secure CMS.
https://www.geeklog.net
24 stars 19 forks source link

Admin Article List Search #971

Closed eSilverStrike closed 5 years ago

eSilverStrike commented 5 years ago

The Admin article list allows artilces to be filter by topics. This will return articles that the user has read and edit access too. We should add a checkbox so users can just return articles that the user has edit access for.

https://www.geeklog.net/forum/viewtopic.php?showtopic=97105&lastpost=true

Quoted from forum post:

It does only list topics that the user has access too, Topics that the user has read only (with no edit) access and topics that they have Edit (that includes read) access. If the user does not have access to the topic at all, it will not be displayed.

That being said (and maybe a feature request here for a checkbox in the search to toggle this option), if you only want to show topics for the filter that the user has edit access only

then try changing the line found in the file \admin\article.php and the function liststories (around line 122)

$seltopics = TOPIC_getTopicListSelect($current_topic, 2);

changing it to:

$seltopics = TOPIC_getTopicListSelect($current_topic, 2, false, '', false, 0, 2);

should show only topics they have edit access to. I think this will help since your writers should only have edit access to the topics they write for.

eSilverStrike commented 5 years ago

Okay this should be handle with sites that have a lot of articles and a number of users that manage these articles. Article list can not be filtered by if they have edit access or not (along with the topic select in the search).

If a read only article is returned when "Edit Access Only" is checked then there is conflicting multiple topic permission issues. This will only happen if the user only has edit access to some of the topics the article is assigned too but not others. This will need to be fixed by the Admin to give the user access to the read only topics.