Overriding site.ini-setting PolicyOmitList[]

Author Message

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[]=manual
PolicyOmitList[]=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/login
PolicyOmitList[]=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

in
SETTINGS\siteaccess\your_db_name\site.ini.append

Marek

Jonny Bergkvist

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.

Jonny

Jonny Bergkvist

Monday 24 November 2003 11:30:27 am

I just found out the correct method myself:

[RoleSettings]
PolicyOmitList[]
PolicyOmitList[]=user/login
PolicyOmitList[]=user/logout

(Skipping the = after the first 1 makes it work!)

Jonny

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