User Level editing

Author Message

Andy Boston

Thursday 13 September 2007 3:47:43 am

We're currently doing a community site for a local school and they want to restrict editing according to the user.

For example the user "John" can only edit the "John" folder.

Is this level of user restriction possible?

I'd appreciate any help on this.

Laurent BOURREL

Thursday 13 September 2007 4:28:09 am

I think the best way to do this is to create a workflow on user creation (you can filter the class concerned by a workflow with a multiplexer workflow). This workflow will have to create a new node for this user using himself as the owner.
Then, create a role with a rule content/edit limited on objects created by the owner.

The following contribution use this method, but i did'nt test it :
http://ez.no/community/contribs/workflow/personal_folder

Hope this helps...

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 31 2025 00:39:27
Script start
Timing: Jan 31 2025 00:39:27
Module start 'layout'
Timing: Jan 31 2025 00:39:27
Module start 'content'
Timing: Jan 31 2025 00:39:27
Module end 'content'
Timing: Jan 31 2025 00:39:27
Script end

Main resources:

Total runtime0.0313 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.1094151.1953
Module start 'layout' 0.00510.0038 739.3047220.6563
Module start 'content' 0.00890.0207 959.9609997.7734
Module end 'content' 0.02960.0017 1,957.734429.9922
Script end 0.0313  1,987.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.009430.0277140.0007
Check MTime0.00123.8141140.0001
Mysql Total
Database connection0.00082.683510.0008
Mysqli_queries0.00206.353930.0007
Looping result0.00000.032010.0000
Template Total0.00134.010.0013
Template load0.00103.114210.0010
Template processing0.00030.877310.0003
Override
Cache load0.00072.169910.0007
General
dbfile0.00030.884180.0000
String conversion0.00000.025940.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