Fork me on GitHub

Permission for Content module  Bottom

  • Hi all.

    I wish that in my site, the module "Content" is not visible for any user. I wish use the module with "call" from others custom modules (created for me). So, if an user access to an link how index.php?module=Content&type=user..., zikula dont must show any content.

    I have tried use in Permission a rule how
    All groups | content:: | :: | No access

    But a user registered CAN view the pages... What's wrong?

    Thanks.
  • Hi what version of Content are you running BTW?
    Permissions have a strict order. You must place this deny access rule above a general comment or read rule.

    So place it above any generic rules that give access.

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • Hi,

    Thanks for your answer. Now, i can restrict the module for all users, but my problem is not resolved yet. Content can not be access now by URL (great!), but my custom module can not retrieve the information from content and i wish it.

    I use the code:

    Code

    $result = pnModFunc('content', 'user', 'view', array('pid' => 12));
    ...
    $pnRender->assign('codHTML', $result);


    And then i use this variable in the template for show the information. But, if the permission is stablished, this can not work. Any idea?
  • 0 users

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