view Lib/IMPL/Security/Rule/RoleCheck.pm @ 281:a8dbddf491dd

refactoring *IMPL::declare reset abstractProps static property after implementing these props *IMPL::Serialization: fixed bug with multiple text parts inside one node *IMPL::Web::Handler::TTView: removed obsolete property 'location' from 'view' template variable
author cin
date Mon, 11 Feb 2013 00:58:22 +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;