role system

Author Message

Georg Franz

Saturday 28 February 2004 5:19:28 am

Hi,

I try to start again a discussion about the role system after digging in the code of ez 3.4-alpha1.

Example:

I create a role "registered user".

The registered user should
-) create forum messages in section a
-) create link entries in section b

So I created two policies.

The "registered user" can't create a link entry in section b, because the checkAccess-method of ezcontentobject always returns "not allowed". (It checks only the first policy and break after that.)

If I made one policy instead of two
-) create forum messages / link entries in section a, b

it works. But in that case it's also possible for the user to create a link entry in section a which I want to prevent.

So I don't know if it's a bug or a feature.

If you have many content classes & sections it's more user friendly to create a policy for each content class.

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Kåre Køhler Høvik

Monday 01 March 2004 4:16:19 am

This looks like a bug. We'll get it fixed in the next few days. Thanks for checking things like this and reporting about them.

--
Kåre Høvik

Kåre Høvik

Kåre Køhler Høvik

Monday 29 March 2004 1:57:45 am

Gone trough this bug report, and it seems to work now. Rev. 5653.
http://ez.no/community/bug_reports/some_role_troubles_with_the_latest_trunk_5292

--
Kåre Høvik

Kåre Høvik

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 19 2025 01:00:33
Script start
Timing: Jan 19 2025 01:00:33
Module start 'layout'
Timing: Jan 19 2025 01:00:33
Module start 'content'
Timing: Jan 19 2025 01:00:33
Module end 'content'
Timing: Jan 19 2025 01:00:33
Script end

Main resources:

Total runtime0.0170 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.0063 589.0313152.6094
Module start 'layout' 0.00630.0030 741.640639.3984
Module start 'content' 0.00930.0056 781.039189.2891
Module end 'content' 0.01490.0021 870.328134.3047
Script end 0.0170  904.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002715.9686140.0002
Check MTime0.00127.1878140.0001
Mysql Total
Database connection0.00127.340710.0012
Mysqli_queries0.002816.525330.0009
Looping result0.00000.064510.0000
Template Total0.00179.710.0017
Template load0.00095.292010.0009
Template processing0.00074.299210.0007
Override
Cache load0.00063.722910.0006
General
dbfile0.00127.084180.0002
String conversion0.00000.042140.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