annotate Lib/IMPL/Security/Rule/RoleCheck.pm @ 280:c6d0f889ef87
 
+IMPL::declare now supports meta attributes
*bugfixes related to the typeof() operator
 | author | cin | 
 | date | Wed, 06 Feb 2013 02:15:48 +0400 | 
 | parents | 6d8092d8ce1b | 
 | children |  | 
 | rev | line source | 
  
| 51 | 1 package IMPL::Security::Rule::RoleCheck; | 
| 230 | 2 use strict; | 
| 51 | 3 | 
|  | 4 require IMPL::Security::Role; | 
|  | 5 | 
|  | 6 sub SatisfyAll { | 
| 194 | 7     my ($secPackage,$object,$desiredAccess,$context) = @_; | 
|  | 8 | 
|  | 9     my $roleEffective = new IMPL::Security::Role ( _effective => $context->rolesAssigned ); | 
|  | 10 | 
|  | 11     return $roleEffective->Satisfy(ExtractRoles($object)); | 
| 51 | 12 } | 
|  | 13 | 
|  | 14 sub _ExtractRoles { | 
| 194 | 15     return (); | 
| 51 | 16 } | 
|  | 17 | 
| 230 | 18 1; |