1
hmorgan
Re: Formulaire NOPERM for anon users
  • 2008/2/7 7:51

  • hmorgan

  • Just popping in

  • Posts: 2

  • Since: 2008/2/7 7


The problem appears to be that the name of the permission specified when the Formulaire system checks for viewing rights is hard coded, and is using the French name for the permission. The quick fix is to change it to the language you are using. For me, that's English. You'll need to make changes to these four files in the formulaire directory:

formulaire.php
index.php
blocks/formulaire_menu.php
blocks/qcm_menu.php

Look for lines that call the checkRight() method like this:

if ( $gperm_handler -> checkRight( 'Droits des categories', ...

Change the Frech permission name to your language, like this for English:

if ( $gperm_handler -> checkRight( 'Permissions of the categories', ...

The long term solution will be to use the language constants instead of hard coding the permission names. The developer has a constant for this, called _AM_CATPERM, but it appears that these files don't currently include the library files. Oh well. Hope this solves the problem for you.




TopTop



Login

Who's Online

605 user(s) are online (326 user(s) are browsing Support Forums)


Members: 0


Guests: 605


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits