Applying security rules to board shares
By default, the act of sharing an asset is canceling all security rules that may be applied to sharing.
Sometimes, this is not desirable, because assets have rules you would like to enforce.
A common use case is enforcing the status of the asset, and removing expired assets from the share links.
In that case, you need to follow the steps below to activate the security rules for board sharing :
Create a new common user with role
public
for every environment (same ID on each environment which may be tricky in some case)Create a new security domain named
customcartdata
In
customcartdata
create a new action named view with the following parameterssurfer
of typewsnoheto.securite.parameter.SurferParameter
objectname
of typewsnoheto.securite.parameter.StringParameter
object
of typewsnoheto.securite.parameter.ObjectNohetoParameter
In WXM_CART2 change your parameters like this :
security.enabled=true
security.domain=customcartdata
security.action=view
security.share.impersonateAsUserId=$USERID defined at step 1
Create your security rules for asset visibilty in carts in the pscartdata/view action.
Your connected users will be recongized as such, so you can apply different rules for admins/contributors...
Anonymous users (people who will receive a shared collection link) will be identified with the user defined with security.share.impersonateAsUserId
parameter