Share » Forums » General » Website Toolbar Move and Remove Option

Website Toolbar Move and Remove Option

Website Toolbar Move and Remove Option

Thursday 08 April 2010 1:43:36 am - 7 replies

Modified on Thursday 08 April 2010 1:50:57 am by John Smith

Author Message

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?

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu