Ez Team there is a difference between can_copy and can_create !

Author Message

Selmah Maxim

Sunday 25 May 2003 2:47:24 am

Hi ..

I think you missing somthing here !

with all your template i found this :
{set can_copy=$content_object.can_create}

There is a difference between can_copy and can_create !

now, How to make the user to just create, not copying others content, or agian his content !
I`ll make some changes to make the copy option just for admins !

but is there any way to make this with user rules

Jo Henrik Endrerud

Sunday 25 May 2003 1:02:45 pm

This is how we see this:
If you can read an object and create new object on this node you should have the possibility to copy the object (if you hadn't, you could still read the article and manually copy the contents to another object).

If you can come up with a good explanation why this is not the way it should behave let me know and we can discuss it further. Maybe someone else also have inputs on this matter.

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Selmah Maxim

Sunday 25 May 2003 2:32:08 pm

Hi ..

if u can read, and just once submit data to the site, then u cannn`t copy the content again !

in my case, the user just once can submit the data, such his company profile, and let say he had submit his data under category Internet/design, this fine, but if he can copy he will copy the data to all categories, he cann`t submit new one (i made some modification in the code), but he can copy it to as new uner another place !

This will work nice if he is editor, or the case is about artical, then the editor can copy the content with some modification as new artical, nice work and fast, but what the admin wann`t let the users make copies ?

Oh .. another thing ... what a miss will be if any user can copy any another user data, not just for the site, also for the admin, he will not know wich is the valid copy ?!

I know it`s easy to manage the links from the template, but this just hiding the links !

I hope next version we can manage also the viewmode by roles, coz the only way i found to stop users from content/view/sitemap, content/copy is to add some lines to the php code, to allowes it just for admin !

btw ...
just read it 'Copy' and 'Read' ... there is BIG difference between to word :D

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

Main resources:

Total runtime0.7155 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.0079 588.1719152.6563
Module start 'layout' 0.00790.0034 740.828139.5078
Module start 'content' 0.01130.7027 780.3359500.9844
Module end 'content' 0.71400.0014 1,281.320312.0938
Script end 0.7155  1,293.4141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5324160.0002
Check MTime0.00140.1982160.0001
Mysql Total
Database connection0.00170.232710.0017
Mysqli_queries0.665493.0027570.0117
Looping result0.00060.0884550.0000
Template Total0.682995.420.3415
Template load0.00240.332120.0012
Template processing0.680695.115920.3403
Template load and register function0.00020.026410.0002
states
state_id_array0.00180.256510.0018
state_identifier_array0.00130.186020.0007
Override
Cache load0.00180.2573250.0001
Sytem overhead
Fetch class attribute can translate value0.00080.114320.0004
Fetch class attribute name0.00140.196930.0005
XML
Image XML parsing0.00020.031720.0001
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00060.0859100.0001
String conversion0.00000.001440.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs