roles result

Jean-Christophe Michel <jc.michel-/aRvmaKoZxNWk0Htik3J/[email protected]> Sat, 05 Mar 2005 00:18:34 +0100
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
Hi Manuel,

Roles returned by Perm::getActiveRoles($user->getId())
are of the form
array( array('id' => 1, 'name' => 'role.Editor'));

Why not simply have
array( 1 => 'role.Editor',
       id => name) ?

Would be simpler to test for a role (with in_array).
-- 
Jean-Christophe Michel
_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev