Forums / Developer / appendPolicy and siteaccess CRC encoding

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

appendPolicy and siteaccess CRC encoding

Author Message

Matthieu Sévère

Wednesday 28 April 2010 7:29:55 am

Hello,

I just saw that when adding a policy with limitation to a siteacces the siteaccess value has to be the CRC of his name :

$role->appendPolicy( "user", "login", array( "SiteAccess" => array( eZSys::ezcrc32( $dstSiteaccess ) ) ) );

Anyone know why ?

It is especially used in ezxmlinstaller and when ezteamroom is installed :

<SiteAccess>2978804645</SiteAccess> {* CRC value of "ezteamroom" *}

It implies that siteacces name is hardcoded ;-(

Thanks for your anwsers :)

--
eZ certified developer: http://ez.no/certification/verify/346216