Forums / Developer / HOWTO? Anonymous access when require user login is set.

HOWTO? Anonymous access when require user login is set.

Author Message

Björn Dieding@xrow.de

Wednesday 08 March 2006 5:18:40 pm

I have an intranet with 2 siteaccesses. BOth protected with require userlogin.

It is possible to access one module even if you are not logged in.

I simply have forgotten, if you can do it or not.

Any Help?

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Łukasz Serwatka

Wednesday 08 March 2006 11:17:21 pm

Have you tried with?

PolicyOmitList[]=module/view

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Kristof Coomans

Wednesday 08 March 2006 11:18:06 pm

You can use the AnonymousAccessList[] setting in site.ini, under the [SiteAccessSettings] group.

I think PolicyOmitList won't be enough, it is read in index.php after the prechecks (where the RequireUserLogin setting is handled).

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Björn Dieding@xrow.de

Monday 13 March 2006 8:21:41 pm

[SiteAccessSettings]
AnonymousAccessList[]=gis/georssserver

[RoleSettings]
PolicyOmitList[]=gis/georssserver

Argh now it works... I did not change a single setting...

I wonder why it did not work at first place...

Thanks

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

eZ debug

Timing: Jan 18 2025 15:50:23
Script start
Timing: Jan 18 2025 15:50:23
Module start 'content'
Timing: Jan 18 2025 15:50:23
Module end 'content'
Timing: Jan 18 2025 15:50:23
Script end

Main resources:

Total runtime0.0146 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.1797180.8125
Module start 'content' 0.00520.0042 769.992297.9297
Module end 'content' 0.00940.0050 867.921974.7031
Script end 0.0145  942.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002114.4415120.0002
Check MTime0.00106.8942120.0001
Mysql Total
Database connection0.00074.840510.0007
Mysqli_queries0.003926.814640.0010
Looping result0.00000.083320.0000
Template Total0.004832.910.0048
Template load0.00074.499310.0007
Template processing0.004128.319810.0041
Override
Cache load0.00053.253710.0005
General
dbfile0.00031.9901100.0000
String conversion0.00000.034330.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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