Skip to content
Permalink
Browse files

Fix EZP-22028: Added limitation to anonymous content/view_embed

Limitation match those used by content/read
  • Loading branch information...
yannickroger committed Dec 11, 2013
1 parent 0327479 commit 9dfba49717779fe4609e76c723579dd11778ec66
@@ -274,7 +274,52 @@ function initSteps()
array(
'module' => 'content',
'function' => 'view_embed',
'limitation' => array(),
'limitation' => array(
'Section' => array(
'_function' => 'sectionIDbyName',
'_params' => array(
'section_name' => 'Standard'
)
)
)
),
array(
'module' => 'content',
'function' => 'view_embed',
'limitation' => array(
'Class' => array(
array(
'_function' => 'classIDbyIdentifier',
'_params' => array(
'identifier' => 'image'
)
),
array(
'_function' => 'classIDbyIdentifier',
'_params' => array(
'identifier' => 'banner'
)
),
array(
'_function' => 'classIDbyIdentifier',
'_params' => array(
'identifier' => 'video'
)
),
array(
'_function' => 'classIDbyIdentifier',
'_params' => array(
'identifier' => 'file'
)
)
),
'Section' => array(
'_function' => 'sectionIDbyName',
'_params' => array(
'section_name' => 'Media'
)
)
)
)
)
)
@@ -274,7 +274,52 @@ function initSteps()
array(
'module' => 'content',
'function' => 'view_embed',
'limitation' => array(),
'limitation' => array(
'Section' => array(
'_function' => 'sectionIDbyName',
'_params' => array(
'section_name' => 'Standard'
)
)
)
),
array(
'module' => 'content',
'function' => 'view_embed',
'limitation' => array(
'Class' => array(
array(
'_function' => 'classIDbyIdentifier',
'_params' => array(
'identifier' => 'image'
)
),
array(
'_function' => 'classIDbyIdentifier',
'_params' => array(
'identifier' => 'banner'
)
),
array(
'_function' => 'classIDbyIdentifier',
'_params' => array(
'identifier' => 'video'
)
),
array(
'_function' => 'classIDbyIdentifier',
'_params' => array(
'identifier' => 'file'
)
)
),
'Section' => array(
'_function' => 'sectionIDbyName',
'_params' => array(
'section_name' => 'Media'
)
)
)
)
)
)

0 comments on commit 9dfba49

Please sign in to comment.
You can’t perform that action at this time.