Forums / Developer / Ez Team there is a difference between can_copy and can_create !

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

eZ debug

Timing: Jan 30 2025 06:58:48
Script start
Timing: Jan 30 2025 06:58:48
Module start 'content'
Timing: Jan 30 2025 06:58:48
Module end 'content'
Timing: Jan 30 2025 06:58:48
Script end

Main resources:

Total runtime0.2043 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.1875370.2578
Module start 'content' 0.00590.0136 958.44531,001.5156
Module end 'content' 0.01950.1847 1,959.96093,890.3359
Script end 0.2042  5,850.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00422.0408200.0002
Check MTime0.00120.6022200.0001
Mysql Total
Database connection0.00060.292310.0006
Mysqli_queries0.109753.71201410.0008
Looping result0.00120.58591390.0000
Template Total0.184390.310.1843
Template load0.00070.332910.0007
Template processing0.183789.918910.1837
Override
Cache load0.00040.215410.0004
Sytem overhead
Fetch class attribute can translate value0.00150.734910.0015
XML
Image XML parsing0.00030.125810.0003
General
dbfile0.00914.4609200.0005
String conversion0.00000.002330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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