unnecessary limitation in policy edit of hide function?

Author Message

nigel dodd

Tuesday 05 July 2005 9:18:26 am

In version 3.6.0, while it seems possible to assign a role to, for instance, <b>edit</b> only classes of type myClass, it does not seem possible to assign a role to <b>hide</b> just classes of type myClass.

I would like my editors to be able only to hide objects of a certain class, not running around the site hiding anything they see fit.

Like the can_edit flag, why can't the can_hide flag be applied whenever a node is accessed and according to permissions?

Since I want my editors to only be able to hide objects that they can already edit I suppose I can add that flag to the object class, but I have just come across the hide facility and my policy is not to re-invent what is already there.

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 02:31:45
Script start
Timing: Jan 19 2025 02:31:45
Module start 'layout'
Timing: Jan 19 2025 02:31:45
Module start 'content'
Timing: Jan 19 2025 02:31:47
Module end 'content'
Timing: Jan 19 2025 02:31:47
Script end

Main resources:

Total runtime1.9668 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 590.5156152.6563
Module start 'layout' 0.00650.0056 743.171939.5078
Module start 'content' 0.01211.9537 782.6797433.0859
Module end 'content' 1.96570.0011 1,215.76568.1094
Script end 1.9668  1,223.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.1742160.0002
Check MTime0.00140.0713160.0001
Mysql Total
Database connection0.00100.049510.0010
Mysqli_queries1.815992.3243460.0395
Looping result0.00040.0211440.0000
Template Total1.804091.720.9020
Template load0.00200.101220.0010
Template processing1.802091.617720.9010
Template load and register function0.00010.004910.0001
states
state_id_array0.00360.183210.0036
state_identifier_array0.00200.102720.0010
Override
Cache load0.00150.078380.0002
Sytem overhead
Fetch class attribute can translate value0.00100.051110.0010
Fetch class attribute name0.00050.024720.0002
XML
Image XML parsing0.00040.018110.0004
class_abstraction
Instantiating content class attribute0.00000.000120.0000
General
dbfile0.00070.0359160.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs