28/10/2008
Role Based Access Control
33
Code Examples - Query Authz / 2
l# not able to destroy 'a pretty ring‘
ldie if $authz->check_access({ session => $session, operation => 'destroy', object => { type => 'ring', id => { name => 'a pretty ring' } } });
l
l# but we can destroy 'the one ring‘
ldie unless $authz->check_access({ session => $session, operation => 'destroy', object => { type => 'ring', id => { name => 'the one ring' } } });