How to implement a 'Run As' feature ?

Author Message

Lazaro Ferreira

Monday 29 November 2004 7:38:27 am

Hi,

We would like to have the possibility that the current user (logon in) without permissions to read an especific folder and its children, run a process ( the process can update a content object if it already exist ) that need to check (read content permission) if an object under the folder exist or not, we were thinking in a 'RUN AS' feature, that let the current user to check the object existence as for instance administrator, then fallback to their account (so to their permissions) to continue the process

Any ideia is welcome ?

Lazaro
http://www.mzbusiness.com

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 20 2025 01:08:02
Script start
Timing: Jan 20 2025 01:08:02
Module start 'layout'
Timing: Jan 20 2025 01:08:02
Module start 'content'
Timing: Jan 20 2025 01:08:03
Module end 'content'
Timing: Jan 20 2025 01:08:03
Script end

Main resources:

Total runtime0.7848 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.0058 589.1641152.6250
Module start 'layout' 0.00580.0029 741.789139.4609
Module start 'content' 0.00870.7747 781.2500426.6484
Module end 'content' 0.78350.0013 1,207.89848.1563
Script end 0.7847  1,216.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4289160.0002
Check MTime0.00140.1748160.0001
Mysql Total
Database connection0.00080.098210.0008
Mysqli_queries0.745394.9710460.0162
Looping result0.00040.0564440.0000
Template Total0.751995.820.3759
Template load0.00200.259720.0010
Template processing0.749895.546520.3749
Template load and register function0.00010.017610.0001
states
state_id_array0.00200.256310.0020
state_identifier_array0.00110.141520.0006
Override
Cache load0.00160.201060.0003
Sytem overhead
Fetch class attribute can translate value0.00120.148310.0012
Fetch class attribute name0.00060.073010.0006
XML
Image XML parsing0.00010.013410.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00170.2143100.0002
String conversion0.00000.001140.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/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: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs