view Lib/IMPL/Security/Rule/RoleCheck.pm @ 263:0f59b2de72af

*fixed IMPL::DOM::Schema circular module references *modified IMPL::Object::Singleton, added auto-activation *code cleanups, docs
author sergey
date Wed, 09 Jan 2013 05:17:44 +0400
parents 6d8092d8ce1b
children
line wrap: on
line source

package IMPL::Security::Rule::RoleCheck;
use strict;

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 ();
}

1;