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?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.