Forums / General / Overriding site.ini-setting PolicyOmitList[]
Jonny Bergkvist
Tuesday 18 November 2003 12:33:02 am
Hi!
I want to disable user-registration i eZ. site.ini has these default settings:
[RoleSettings] ... PolicyOmitList[]=user/login PolicyOmitList[]=user/logout PolicyOmitList[]=user/register PolicyOmitList[]=user/activate PolicyOmitList[]=user/success PolicyOmitList[]=layout PolicyOmitList[]=manualPolicyOmitList[]=ezinfo
I do not want to alter the original site.ini. How do I override/clear these settings in my site.ini.append.php?
I tried this (tips from JoHenrik at eZ):
[RoleSettings] PolicyOmitList[]= PolicyOmitList[]=user/loginPolicyOmitList[]=user/logout
The first empty PolicyOmitList[]= should clear the array.But it doesn't work.
Jonny
Marek Pogorzelski
Tuesday 18 November 2003 3:27:21 am
Hi, maybe you just need:
[SiteAccessSettings]RequireUserLogin=false
inSETTINGS\siteaccess\your_db_name\site.ini.append
Marek
Tuesday 18 November 2003 5:20:15 am
Hi Marek,
I already have this setting on my siteaccess :-)
What I want to is to disable the possibility to register a guest account. The site is intended used for anonymous-surfers, and our ordinary users which exist in our LDAP-directory, so they do not need to register in eZ, just log on.
Monday 24 November 2003 11:30:27 am
I just found out the correct method myself:
[RoleSettings] PolicyOmitList[] PolicyOmitList[]=user/loginPolicyOmitList[]=user/logout
(Skipping the = after the first 1 makes it work!)