Forums / General / Website Toolbar Move and Remove Option

Website Toolbar Move and Remove Option

Author Message

John Smith

Thursday 08 April 2010 1:43:36 am

Hi Guys,

In my setup the editors are only allowed to remove the objects from the public website, I have not given any permission regarding moving of the objects as it is a separate policy. But I can see "Move" button working in the website tool bar. Are they (move and remove) both linked to each other.

My Policy

content remove Class( Article )

Output

can_remove true

can_move true

can_move_from true

Why can_move and can_move_from showing true.... I dont want to allow users to move the objects.

Is it a bug or Am I missing anything?

Cheers,

John Smith

Thursday 08 April 2010 6:53:42 am

Anybody please?

Robin Muilwijk

Thursday 08 April 2010 11:37:45 am

Hi John,

Is there another policy for the editors for content/remove? Other than the one specific for the Article class?

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

John Smith

Thursday 08 April 2010 1:33:17 pm

Cheers Robin,

Yes, there are few others like

content edit Class (Article)

content create Class (Article)

content remove Class (Article)

There is nothing regarding move, still getting Move Icon in the website toolbar.

Hope someone can help me.... Quite interesting nobody else has noticed it. I check the policies on demo website set up by ez.no, same thing happening there.

Just read the following in eZ publish Website Interface User Guide that "When you remove content, you are actually moving it to the trash container." Does this means REMOVE policy will automatically activate MOVE button.

Carlos Revillo

Friday 09 April 2010 9:33:42 am

Yeah.

Checking the code, function canMoveFrom of eZContentObject looks like

if ( !isset( $this->Permissions['can_move_from'] ) )
{
   $this->Permissions['can_move_from'] = $this->checkAccess( 'edit' ) && $this->checkAccess( 'remove' );
}
return ( $this->Permissions['can_move_from'] == 1 );

so, it seems so. move depends on edit and remove access. if thess two policies are activated for your user (as they do) the user will get access to move function.

John Smith

Saturday 10 April 2010 3:01:19 am

Cheers Carlos,

Quite disappointing. This means I cannot stop my users/editor to move the objects from the public website by using website toolbar?

If they got the permissions to edit and remove, then will automatically move the objects...

Anyone from eZcrew can clarify the situation. Definately want to stop moving functionality.

Much appreciated.

André R.

Saturday 10 April 2010 3:43:38 am

This also depends on the user having create access for the class in question for the target location he selects, so the logic is probably that "why limit move operation when the user can create content, copy'paste the text and so on, and delete the old content".

Not 100% sure though, this was made before my time here.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

John Smith

Saturday 10 April 2010 4:19:22 am

Cheers Andre,

It only happens when you give remove permissions. Worth thinking about in further versions. Is there hack by which I can achieve my requirement?

eZ debug

Timing: Jan 18 2025 03:08:03
Script start
Timing: Jan 18 2025 03:08:03
Module start 'content'
Timing: Jan 18 2025 03:08:04
Module end 'content'
Timing: Jan 18 2025 03:08:04
Script end

Main resources:

Total runtime0.7753 sec
Peak memory usage4,096.0000 KB
Database Queries213

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.7266180.8359
Module start 'content' 0.00520.6635 768.5625681.4141
Module end 'content' 0.66880.1065 1,449.9766340.4375
Script end 0.7753  1,790.4141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5115210.0002
Check MTime0.00150.1984210.0001
Mysql Total
Database connection0.00070.084510.0007
Mysqli_queries0.696489.81772130.0033
Looping result0.00190.24422110.0000
Template Total0.742295.720.3711
Template load0.00200.255420.0010
Template processing0.740295.474420.3701
Template load and register function0.00020.024910.0002
states
state_id_array0.00070.095510.0007
state_identifier_array0.00100.127220.0005
Override
Cache load0.00170.2219520.0000
Sytem overhead
Fetch class attribute can translate value0.00160.206450.0003
Fetch class attribute name0.00100.1269100.0001
XML
Image XML parsing0.00140.176950.0003
class_abstraction
Instantiating content class attribute0.00000.0020100.0000
General
dbfile0.00300.3928360.0001
String conversion0.00000.000730.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/td.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/td.tplEdit templateOverride template
1content/datatype/view/ezxmltags/tr.tpl<No override>extension/community/design/community/templates/content/datatype/view/ezxmltags/tr.tplEdit templateOverride template
1content/datatype/view/ezxmltags/table.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/table.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 9

Time used to render debug report: 0.0002 secs