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.

eZ debug

Timing: Jan 31 2025 01:17:31
Script start
Timing: Jan 31 2025 01:17:31
Module start 'layout'
Timing: Jan 31 2025 01:17:31
Module start 'content'
Timing: Jan 31 2025 01:17:31
Module end 'content'
Timing: Jan 31 2025 01:17:31
Script end

Main resources:

Total runtime0.0301 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 588.2578151.2266
Module start 'layout' 0.00860.0053 739.4844220.7188
Module start 'content' 0.01400.0147 960.20311,001.8047
Module end 'content' 0.02870.0014 1,962.007833.9922
Script end 0.0300  1,996.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003110.4516140.0002
Check MTime0.00124.1308140.0001
Mysql Total
Database connection0.00185.904410.0018
Mysqli_queries0.003311.023530.0011
Looping result0.00000.073010.0000
Template Total0.00093.110.0009
Template load0.00082.535010.0008
Template processing0.00020.532210.0002
Override
Cache load0.00051.816410.0005
General
dbfile0.00227.397980.0003
String conversion0.00000.033340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs