Forums / Developer / Permissions for a new module

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 Exponential 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 :)