Permissions for a new module

Author Message

Vincent Basset

Thursday 19 February 2004 1:57:50 am

Hi all,

I can't manage to write access permissions to my module.
For now, I need to be logged into eZpublish to access the url, otherwise eZ asks me to log in.

Here is my extension/php/modules/catapub/module.php file :

<?php
$Module = array( "name" => "catapub" );
$ViewList = array();
$ViewList["recherche"] = array(
"script" => "catapub_recherche.php",
"functions" => array( 'read' ),
'params' => array() );
$FunctionList['read'] = array( );
?>

I didn't find documentation on how the 'read' permission should be written ????
I'd like to let anyone (anonymous user) access this module (this is a search module)

Thanks for help
Vince

Bård Farstad

Thursday 19 February 2004 2:04:25 am

In your example you've already defined read permission for your module. You will need to add this policy for the anonymous user. This is done in the role edit interface in admin. It will be available under yourmodule/read automatically after you've defined it in $FunctionList['read'] = array( );

--bård

Documentation: http://ez.no/doc

Vincent Basset

Thursday 19 February 2004 3:03:50 am

thanks a lot, I didn't realized that my module appeared in the admin interface...

It works, It's alive !!! :D

ps : is there any documentation on $ViewList ? (the different parameters, the values, etc..)

pps : idem for the $FunctionList ???

thx
Vince :)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.