Create new policy limition based on parent owner

Author Message

Douglas Hammond

Saturday 05 December 2009 9:11:13 pm

I want to add a new function limitation like the Owner limitation but ParentOwner.

Can anyone point out where I would start to look to add a new policy limitation?

I have found the ezPolicyLimitation class but have no idea where the different limitations are found or how to add a new one that can be added in the policy editor.

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 30 2025 22:24:00
Script start
Timing: Jan 30 2025 22:24:00
Module start 'layout'
Timing: Jan 30 2025 22:24:00
Module start 'content'
Timing: Jan 30 2025 22:24:00
Module end 'content'
Timing: Jan 30 2025 22:24:00
Script end

Main resources:

Total runtime0.0242 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.0067 588.2656151.2266
Module start 'layout' 0.00670.0031 739.4922220.7188
Module start 'content' 0.00980.0129 960.2109993.6328
Module end 'content' 0.02270.0015 1,953.843829.9922
Script end 0.0241  1,983.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002610.8365140.0002
Check MTime0.00114.5332140.0001
Mysql Total
Database connection0.00145.610210.0014
Mysqli_queries0.002510.281630.0008
Looping result0.00000.045410.0000
Template Total0.00104.310.0010
Template load0.00083.283410.0008
Template processing0.00021.026710.0002
Override
Cache load0.00062.355410.0006
General
dbfile0.00156.058480.0002
String conversion0.00000.029640.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