diff options
| author | fukachan <fukachan> | 2005-11-30 23:30:38 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2005-11-30 23:30:38 +0000 |
| commit | b2ec034ac5748f97a2cbb0e811c355312e31c605 (patch) | |
| tree | 341b2b814ec6330230f7460db287c79e7ff93f65 /fml/lib/FML/Restriction | |
| parent | 8739d241ca3947fe11d625d30f752fe3e6552aeb (diff) | |
| download | fml8-b2ec034ac5748f97a2cbb0e811c355312e31c605.tar.gz fml8-b2ec034ac5748f97a2cbb0e811c355312e31c605.tar.bz2 fml8-b2ec034ac5748f97a2cbb0e811c355312e31c605.zip | |
use $curproc->credential();
Diffstat (limited to 'fml/lib/FML/Restriction')
| -rw-r--r-- | fml/lib/FML/Restriction/Command.pm | 4 | ||||
| -rw-r--r-- | fml/lib/FML/Restriction/Post.pm | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/fml/lib/FML/Restriction/Command.pm b/fml/lib/FML/Restriction/Command.pm index e161c1f2..6d30fa82 100644 --- a/fml/lib/FML/Restriction/Command.pm +++ b/fml/lib/FML/Restriction/Command.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Command.pm,v 1.18 2005/05/30 03:28:07 fukachan Exp $ +# $FML: Command.pm,v 1.19 2005/05/31 13:14:05 fukachan Exp $ # package FML::Restriction::Command; @@ -130,7 +130,7 @@ sub permit_admin_member_maps { my ($self, $rule, $sender) = @_; my $curproc = $self->{ _curproc }; - my $cred = $curproc->{ credential }; + my $cred = $curproc->credential(); my $match = $cred->is_privileged_member($sender); if ($match) { diff --git a/fml/lib/FML/Restriction/Post.pm b/fml/lib/FML/Restriction/Post.pm index 6970543b..c71576e6 100644 --- a/fml/lib/FML/Restriction/Post.pm +++ b/fml/lib/FML/Restriction/Post.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Post.pm,v 1.19 2005/05/30 03:32:34 fukachan Exp $ +# $FML: Post.pm,v 1.20 2005/05/31 13:14:05 fukachan Exp $ # package FML::Restriction::Post; @@ -49,7 +49,7 @@ sub reject_system_special_accounts { my ($self, $rule, $sender) = @_; my $curproc = $self->{ _curproc }; - my $cred = $curproc->{ credential }; + my $cred = $curproc->credential(); my $match = $cred->match_system_special_accounts($sender); if ($match) { @@ -96,7 +96,7 @@ sub permit_member_maps { my ($self, $rule, $sender) = @_; my $curproc = $self->{ _curproc }; - my $cred = $curproc->{ credential }; + my $cred = $curproc->credential(); # Q: the mail sender is an ML member? if ($cred->is_member($sender)) { |
