view Lib/IMPL/Security/Rule/RoleCheck.pm @ 219:c477f24f1980

sync
author sergey
date Tue, 21 Aug 2012 17:13:47 +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 ();
}