dachcom-digital / pimcore-members

Pimcore Object, Asset and Document Restriction & Frontend Authentication
Other
54 stars 34 forks source link

Can not set group after Update: This does not work any more. #140

Closed a4chris closed 4 years ago

a4chris commented 4 years ago
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no

Hi Stefan

After Updating a Project to "Pimcore": ~6.6.5 and "members": "~3.1.2" is it not possible to set the Multiselect "groups" in Class "MembersUser" programmatically anymore.

Either like this: config.yml members: restriction: enabled: true user: initial_groups:

nor like this: $object = new DataObject\MembersUser(); $object->setKey(\Pimcore\File::getValidFilename($key)); $object->setParentId($parentId); $object->setPublished(true); $object->setGroups([DataObject\MembersGroup::getById(4)]); $object->save();

Is this is a known issue? Thanks for helping. Christoph

solverat commented 4 years ago

You're right - fixed with https://github.com/dachcom-digital/pimcore-members/commit/e597744919dcd14926ae5ae81e979cabe671bead!

solverat commented 4 years ago

Don't forget to apply bin/console pimcore:migrations:migrate -b MembersBundleafter updating!

a4chris commented 4 years ago

Hi Stefan Installed, Tested, Worked! Thank you ver much.