4
followed the link & removed
//check if the curent user has the right to see the form
$groups = is_object( $xoopsUser ) ? $xoopsUser -> getGroups() : XOOPS_GROUP_ANONYMOUS;
$gperm_handler = &xoops_gethandler( 'groupperm' );
$module_handler =& xoops_gethandler('module');
$formulaireModule =& $module_handler->getByDirname('formulaire');
if ( $gperm_handler -> checkRight( 'Droits des categories', $id, $groups, $formulaireModule->getVar('mid') ) ) {}
else
{ redirect_header(XOOPS_URL,1,"NOPERM");
}
//
works great now. Thanks