view Lib/IMPL/Security/Rule/RoleCheck.pm @ 226:b6cde007a175

Added resource contract
author sergey
date Wed, 05 Sep 2012 15:10:26 +0400
parents 4d0e1962161c
children 6d8092d8ce1b
line wrap: on
line source

package IMPL::Security::Rule::RoleCheck;

require IMPL::Security::Role;

sub SatisfyAll {
    my ($secPackage,$object,$desiredAccess,$context) = @_;
    
    my $roleEffective = new IMPL::Security::Role ( _effective => $context->rolesAssigned );
    
    return $roleEffective->Satisfy(ExtractRoles($object));
}

sub _ExtractRoles {
    return ();
}