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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.