user->register policy is working even if it is not grated to anonymous user.

Author Message

Romeo Antony

Tuesday 14 December 2010 2:27:37 am

Hi,

I am usig ezp ver 4.3.0

For anonymous user role, I havn't granted user->register policy, still , anonymous users can register within the siteaccess. Anonymous users been allowded only to anonymous role.

Anywork around?

Damien Pobel

Tuesday 14 December 2010 2:46:03 am

Hi Romeo,

This is because user/register is in RoleSettings/PolicyOmitList array in site.ini. If you remove it, anonymous won't be able to use user/register unless the right policy is set.

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Marcel Marnet

Tuesday 14 December 2010 11:30:39 pm

Hello Romeo,

have a look at the following site.ini lines (line 644...):

# [SiteAccessRules]
# Rules[]
# # Set access policy to allowed
# Rules[]=access;enable
# # Special syntax which means any module
# # This means that for now all modules are enabled
# Rules[]=moduleall
# # Set policy to denied
# Rules[]=access;disable
# # If content/search module use current policy (denied)
# Rules[]=module;content/search
# # If rss module use current policy (denied)
# Rules[]=module;rss

if you want to disable accessing user/register generally just add the following lines to your override site.ini.append.php

[SiteAccessRules]
Rules[]
Rules[]=access;disable
Rules[]=module;user/register

with best regards,

Marcel

Romeo Antony

Wednesday 15 December 2010 4:39:51 am

Thanks a lot Marcel and Damien. I got it.

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 18 2025 11:20:44
Script start
Timing: Jan 18 2025 11:20:44
Module start 'layout'
Timing: Jan 18 2025 11:20:44
Module start 'content'
Timing: Jan 18 2025 11:20:44
Module end 'content'
Timing: Jan 18 2025 11:20:44
Script end

Main resources:

Total runtime0.0226 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0101 588.4063152.6875
Module start 'layout' 0.01010.0041 741.093839.5313
Module start 'content' 0.01420.0056 780.625093.4766
Module end 'content' 0.01990.0027 874.101634.2891
Script end 0.0226  908.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003013.1381140.0002
Check MTime0.00135.7453140.0001
Mysql Total
Database connection0.00198.254610.0019
Mysqli_queries0.004620.307430.0015
Looping result0.00000.128710.0000
Template Total0.00219.410.0021
Template load0.00125.215810.0012
Template processing0.00094.198010.0009
Override
Cache load0.00072.937510.0007
General
dbfile0.00093.987080.0001
String conversion0.00000.065440.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