List all users who can edit?

Author Message

Mikael Johansson

Thursday 14 July 2005 5:27:11 am

How do I list all users that have permissions to edit a certain object?

One solution would of course be to loop through all users and check the can_edit property, but that would be wasteful.

A general solution would be preferrable, but I know the ID of the role that makes it possible for the user to edit the object, so maybe I can use that? I also know that the role is assigned by limitation to subtree.

Thanks in advance

Mikael Johansson, Sweden

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

Main resources:

Total runtime0.0149 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.0065 589.1563152.6250
Module start 'layout' 0.00650.0025 741.781339.4453
Module start 'content' 0.00900.0039 781.226685.1172
Module end 'content' 0.01280.0020 866.343830.3047
Script end 0.0149  896.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.6348140.0002
Check MTime0.00127.8982140.0001
Mysql Total
Database connection0.002818.620010.0028
Mysqli_queries0.002114.271830.0007
Looping result0.00000.073610.0000
Template Total0.001610.710.0016
Template load0.00085.656910.0008
Template processing0.00074.978610.0007
Override
Cache load0.00063.791510.0006
General
dbfile0.00021.468680.0000
String conversion0.00000.048040.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