RE: Unable to use accountEntry restriction on site initializer obj. definition

Jamie Sammons, modified 3 Years ago. New Member Posts: 5 Join Date: 8/17/22 Recent Posts

by @Amos Fong 

Since objects definitions imported by a site initializer are automatically published, I cannot enable accountentry restriction on them (https://issues.liferay.com/browse/LPS-158866).

Jamie Sammons, modified 3 Years ago. New Member Posts: 7 Join Date: 8/22/22 Recent Posts

Hey Amos,

Thanks for your question, Account Restriction is something we only allow users to configure before the objects is published due to security issues.

Why don't you add those configurations directly in the site initializer?

thumbnail
Amos Fong, modified 3 Years ago. Liferay Legend Posts: 2047 Join Date: 10/7/08 Recent Posts

Hey Luiz,

It doesn't look possible to configure this in site initializer (maybe unless we're writing java code).

 

Jamie Sammons, modified 3 Years ago. New Member Post: 1 Join Date: 2/4/20 Recent Posts

Hello Amos,

A pull request was sent to fix the issue you described. You can track the progress through this ticket.

Thank you.

thumbnail
Amos Fong, modified 3 Years ago. Liferay Legend Posts: 2047 Join Date: 10/7/08 Recent Posts

great, thanks!