Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The WXM_MediaCore plugin compiles, on the other hand, all user rights in a surfer property named wxm_roleByMedia in the following form: <id_role>_<id_media> separated by commas.

You will be able to use this information in security rules, for instance :

Code Block
NBCOMMONELEMENTS(surfer.wxm_roleByMedia, CONCAT(',31_',object.media,',')) > 0

For performance reasons this denormalization is not automatic and must be activated by the securityDenormalizeUserRightsInSurfer property in the configuration of the WXM_MediaCore plugin.