Users edit one piece of content?

Author Message

Neo Pixel

Monday 11 May 2009 7:49:39 am

I'm creating a directory on a site so people can upload their company details.

How do I assign roles/policies to a node so they can edit it?

What's the best way to allow them access to their listing(node)

Asking stupid questions so you don't have to!

Ɓukasz Serwatka

Tuesday 12 May 2009 12:14:28 am

Hi,

Basically you need content/create and content/edit policies. content/create limit to classes which your user are allowed to create. content/edit limit to owner editing.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Neo Pixel

Tuesday 12 May 2009 1:27:10 am

Can you elaborate on how to allocate the node to the user?

Asking stupid questions so you don't have to!

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 00:33:01
Script start
Timing: Jan 19 2025 00:33:01
Module start 'layout'
Timing: Jan 19 2025 00:33:01
Module start 'content'
Timing: Jan 19 2025 00:33:02
Module end 'content'
Timing: Jan 19 2025 00:33:02
Script end

Main resources:

Total runtime1.1881 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 589.3438152.6250
Module start 'layout' 0.00900.0037 741.968839.4609
Module start 'content' 0.01271.1740 781.4297539.4766
Module end 'content' 1.18670.0013 1,320.906312.1563
Script end 1.1880  1,333.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3009160.0002
Check MTime0.00160.1387160.0001
Mysql Total
Database connection0.00110.095710.0011
Mysqli_queries1.135395.5616570.0199
Looping result0.00060.0524550.0000
Template Total1.146596.520.5733
Template load0.00180.150020.0009
Template processing1.144796.354720.5724
Template load and register function0.00010.008410.0001
states
state_id_array0.00210.178910.0021
state_identifier_array0.00120.098120.0006
Override
Cache load0.00150.1241140.0001
Sytem overhead
Fetch class attribute can translate value0.00090.075820.0005
Fetch class attribute name0.00110.095650.0002
XML
Image XML parsing0.00120.101220.0006
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00100.0871250.0000
String conversion0.00000.001040.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/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: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs