annotate Lib/IMPL/Security/Rule/RoleCheck.pm @ 143:d9dd3500ead3
 
Singleton behavior changed
 | author | 
 wizard | 
 | date | 
 Thu, 08 Jul 2010 23:46:49 +0400 | 
 | parents | 
 79bf75223afe  | 
 | children | 
 4d0e1962161c  | 
 | rev | 
   line source | 
  
| 
51
 | 
     1 package IMPL::Security::Rule::RoleCheck;
 | 
| 
 | 
     2 
 | 
| 
 | 
     3 require IMPL::Security::Role;
 | 
| 
 | 
     4 
 | 
| 
 | 
     5 sub SatisfyAll {
 | 
| 
 | 
     6 	my ($secPackage,$object,$desiredAccess,$context) = @_;
 | 
| 
 | 
     7 	
 | 
| 
94
 | 
     8 	my $roleEffective = new IMPL::Security::Role ( _effective => $context->rolesAssigned );
 | 
| 
51
 | 
     9 	
 | 
| 
 | 
    10 	return $roleEffective->Satisfy(ExtractRoles($object));
 | 
| 
 | 
    11 }
 | 
| 
 | 
    12 
 | 
| 
 | 
    13 sub _ExtractRoles {
 | 
| 
 | 
    14 	return ();
 | 
| 
 | 
    15 }
 | 
| 
 | 
    16 
 |