Commit a4ef0236 authored by Ivan Tyagov's avatar Ivan Tyagov

Make user current user is allowed to copy or move object by checking this...

Make user current user is allowed to copy or move object by checking this security permission explicitly.
parent 66ca1246
...@@ -67,7 +67,8 @@ else:\n ...@@ -67,7 +67,8 @@ else:\n
# We copy contents in place if possible\n # We copy contents in place if possible\n
directory = getattr(context, \'original_container\', None) or context.getParentValue()\n directory = getattr(context, \'original_container\', None) or context.getParentValue()\n
allowed_type_list = directory.getVisibleAllowedContentTypeList()\n allowed_type_list = directory.getVisibleAllowedContentTypeList()\n
if portal_type not in allowed_type_list:\n is_user_allowed_copy_or_move = context.Base_checkPermission(context.getRelativeUrl(), \'Copy or Move\')\n
if portal_type not in allowed_type_list or not is_user_allowed_copy_or_move:\n
if batch_mode:\n if batch_mode:\n
return None\n return None\n
else:\n else:\n
......
1094 1095
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment