Details
-
Bug
-
Resolution: Unresolved
-
High
-
5.3-dev
Description
As mentioned on the related issue about UserService::loadUserGroup we can load any kind of content.
Here also, we can directly assign any kind of content objects to the created user
Steps
- go to the admin interface
- create a folder and get it's object ID (<folder-id>)
- create an image and get it's object ID (<image-id>)
- load the content objects using public API
$userCreateStruct = // make a valid user create struct $parentGroups = array(); $parentGroups[] = $contentService->loadContent( <folder-id> ); $parentGroups[] = $contentService->loadContent( <image-id> ); $userService->createUser( $userCreateStruct, $parentGroups );
- Verify no exception was thrown
- Verify that on the created folder the user is shown
- Verify that on the created image (non-container) the user is not shown