edoceo

Radix PHP ACL


<?php
/*
    @brief Using Radix_ACL
*/


// The ACL is pretty easy, add items to it and then check them.

Radix_ACL::init();
Radix_ACL::permit('actor','asset');

// Maybe you're using your Session ID in there, seems reasonable.

Radix_ACL::permit($SID,'view-sensitive-data');
Radix_ACL::permit($SID,'modify-other-user-password');
Radix_ACL::permit($SID,'launch-missles');

Loading Comments from Disqus...