Fork me on GitHub

securityschema  Bottom

  • I have a news module similar to NS-AddStory. It has topics and such as well.

    Can anyone give me some direction on how to set up the securityschema on the pnversion.php file, as well as the pnSecAuthAction functions within the module.

    Right now I have this...

    Code

    $modversion['securityschema'] = array('news::' => '::',
                                          'news::Topic' => 'Topic name::Topic ID');


    But I'm not really sure how it works. I want to restrict access so that only certain groups can modify certain topics.

    I did find this thread in the permissions forum. But I'm a little unclear exactly how this would apply to my module.
  • maybe *this* might help...

    --
    regards from germany
    ..::[Zikula Application Framework]::.. ..::[SEO-Blog]::.. ..::[CMS Sicherheit]::..
  • I don't understand how you know what to put in the securityschema on the pnversions file.

    If I put this...

    $modversion['securityschema'] = array('news::' => '::',
    'news::Topic' => 'Topic name::Topic ID');

    Why "Topic name" and "Topic ID" What is the system using those values for? Does it matter what you put in those two spots?
  • It uses those values to populate the list in the permissions area - it doesn't matter what you write, but it does help if it actually reflects the permissions schema of your module!

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide

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