Fork me on GitHub

news topics and categories permissions  Bottom

  • I have a PN0.764 site with news-articles which have a topic (one out of 25) and a category (one out of 10). I use permissions based on categories on my PN-site.

    I'm trying to move to Zikula but the permissions got screwed up. Now the items have been upgraded to news 2.6.2, before I can prohibit a guest from seeing an article, I have to disallow both the category and the topic.

    As I have many topics I have to enter both the category-id and all topic-category id's in a permission. For example:
    categories:
    category 1 - internal
    category 2 - clients
    category 3 - visitors

    topics
    category 4 - topic - IT
    category 5 - topic - energy

    To disallow guest from seeing internal affairs, I thought I have to use the following rule:

    Code

    unregistered  categories::category  (1|2):: none

    However, if an article has a topic "IT" , it will show wether or not it's internal.

    What would be the best way to get this to work? I've been trying for hours, reading formus, Wiki etc etc but no luck...

    TIA

    Bas



    Edited by bvdbos3 on Apr 01, 2011 - 07:42 PM.
  • I tried two ways around:
    1) Disallow category 1 and allow read for all categories
    this doesn't work, see above.
    2) allow category 3 and disallow all other categories
    this seems to works, unregistered can't view articles in category 2 or 3 (they are only allowed to view news with either a category 3). However, the overview of categories is empty (so not even showing category 3) while the archive does work. Also, they can't view an overview of topic 4. This makes sense as I set all categories to none, but as soon as I allow topic 4 along with category 3, also the internal messages show up as one of the permissions is allowed.

    Ideally I think it should be the other way round: Only show messages if both category and topic (or both category-property 1 and category-property 2 in fact) are allowed.



    Edited by bvdbos3 on Apr 01, 2011 - 08:16 PM.
  • I am trying to do something similar here: http://community.zik…art-0.htm#pid260608 and haven't figured it out either. I see that your instance specification is different than mine. I used FAQ::Category versus Categories::Category. Since you at least got some filtering to work, I'll give your syntax a try...
  • Category based permissions have always been tricky, I didn't even realize they were finally working in some manner in fact. I'll try to draw some attention to the two threads from people who may know better.

    --
    Home Page | Find on Facebook | Follow on Twitter

This list is based on users active over the last 60 minutes.