annotate lib/IMPL/Security/Rule/RoleCheck.pm @ 422:b0481c071bea
ref20150831
IMPL::Config::Container tests, YAMLConfiguration now works and tested
author |
cin |
date |
Sun, 20 Aug 2017 00:20:41 +0300 |
parents |
c6e90e02dd17 |
children |
|
rev |
line source |
407
|
1 package IMPL::Security::Rule::RoleCheck;
|
|
2 use strict;
|
|
3
|
|
4 require IMPL::Security::Role;
|
|
5
|
|
6 sub SatisfyAll {
|
|
7 my ($secPackage,$object,$desiredAccess,$context) = @_;
|
|
8
|
|
9 my $roleEffective = new IMPL::Security::Role ( _effective => $context->rolesAssigned );
|
|
10
|
|
11 return $roleEffective->Satisfy(ExtractRoles($object));
|
|
12 }
|
|
13
|
|
14 sub _ExtractRoles {
|
|
15 return ();
|
|
16 }
|
|
17
|
|
18 1;
|