Mercurial > pub > Impl
annotate Lib/IMPL/Security/Rule/RoleCheck.pm @ 54:f4e045e47770
commit
| author | wizard@linux-odin.local |
|---|---|
| date | Tue, 02 Mar 2010 20:15:57 +0300 |
| parents | a1498298d3ee |
| children | 79bf75223afe |
| rev | line source |
|---|---|
| 51 | 1 package IMPL::Security::Rule::RoleCheck; |
| 2 | |
| 3 require IMPL::Security::Role; | |
| 4 | |
| 5 sub SatisfyAll { | |
| 6 my ($secPackage,$object,$desiredAccess,$context) = @_; | |
| 7 | |
| 8 my $roleEffective = new IMPL::Security::Role ( effective => $context->AssignedRoles ); | |
| 9 | |
| 10 return $roleEffective->Satisfy(ExtractRoles($object)); | |
| 11 } | |
| 12 | |
| 13 sub _ExtractRoles { | |
| 14 return (); | |
| 15 } | |
| 16 |
