This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » appendPolicy and siteaccess CRC encoding

appendPolicy and siteaccess CRC encoding

appendPolicy and siteaccess CRC encoding

Wednesday 28 April 2010 4:29:55 pm


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 happy.gif Emoticon

Modified on Wednesday 28 April 2010 5:02:40 pm by Matthieu Sévère

No reply yet!


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from