annotate Lib/IMPL/Security/Rule/RoleCheck.pm @ 198:2ffe6f661605
 
Implemented IMPL::Web::Handler::RestController
fixes in IMPL::Serialization
completed IMPL::Web::Application::RestResource
added IMPL::Web::Handler::JSONView
added IMPL::Web::RestContract
 | author | 
 cin | 
 | date | 
 Fri, 20 Apr 2012 16:06:36 +0400 | 
 | parents | 
 4d0e1962161c  | 
 | children | 
 6d8092d8ce1b  | 
 | rev | 
   line source | 
  
| 
51
 | 
     1 package IMPL::Security::Rule::RoleCheck;
 | 
| 
 | 
     2 
 | 
| 
 | 
     3 require IMPL::Security::Role;
 | 
| 
 | 
     4 
 | 
| 
 | 
     5 sub SatisfyAll {
 | 
| 
194
 | 
     6     my ($secPackage,$object,$desiredAccess,$context) = @_;
 | 
| 
 | 
     7     
 | 
| 
 | 
     8     my $roleEffective = new IMPL::Security::Role ( _effective => $context->rolesAssigned );
 | 
| 
 | 
     9     
 | 
| 
 | 
    10     return $roleEffective->Satisfy(ExtractRoles($object));
 | 
| 
51
 | 
    11 }
 | 
| 
 | 
    12 
 | 
| 
 | 
    13 sub _ExtractRoles {
 | 
| 
194
 | 
    14     return ();
 | 
| 
51
 | 
    15 }
 | 
| 
 | 
    16 
 |