How to grant edit access

Author Message

Aleksander Lech

Wednesday 22 February 2006 6:57:19 am

Hi there,
is there possibility to grant edit access to logged user from template?

I mean, l'd like to grant logged user edit access to given object without using role/policy interface, just using template funstions/operators.

Aleksander

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

Main resources:

Total runtime0.5727 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.0070 587.9063152.6250
Module start 'layout' 0.00700.0024 740.531339.4297
Module start 'content' 0.00940.5615 779.9609397.7813
Module end 'content' 0.57090.0017 1,177.74228.1797
Script end 0.5726  1,185.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5759160.0002
Check MTime0.00130.2329160.0001
Mysql Total
Database connection0.00120.204710.0012
Mysqli_queries0.533993.2392460.0116
Looping result0.00050.0793440.0000
Template Total0.538194.020.2691
Template load0.00190.340120.0010
Template processing0.536293.630220.2681
Template load and register function0.00020.030010.0002
states
state_id_array0.00160.274210.0016
state_identifier_array0.00080.144220.0004
Override
Cache load0.00160.274770.0002
Sytem overhead
Fetch class attribute can translate value0.00070.117410.0007
Fetch class attribute name0.00070.130410.0007
XML
Image XML parsing0.00020.027210.0002
class_abstraction
Instantiating content class attribute0.00000.001010.0000
General
dbfile0.00230.4076100.0002
String conversion0.00000.001840.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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