summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Process/Command.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-08-08 03:09:45 +0000
committerfukachan <fukachan>2002-08-08 03:09:45 +0000
commit329a2315d569004138526f07467f1ab348ff55e2 (patch)
tree475f3d7e613155a73f52633325f75489a2a57507 /fml/lib/FML/Process/Command.pm
parentfd176535c57f5821f419c345a3e60b09c460fba3 (diff)
downloadfml8-329a2315d569004138526f07467f1ab348ff55e2.tar.gz
fml8-329a2315d569004138526f07467f1ab348ff55e2.tar.bz2
fml8-329a2315d569004138526f07467f1ab348ff55e2.zip
change arguments of credential functions to clarify the target address:
e.g. is_member($curproc, $args) -> is_member(addr) modified functions: o is_member() o is_privileged_member() o is_recipient() o match_system_accounts()
Diffstat (limited to 'fml/lib/FML/Process/Command.pm')
-rw-r--r--fml/lib/FML/Process/Command.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/fml/lib/FML/Process/Command.pm b/fml/lib/FML/Process/Command.pm
index 59688fe4..2e887a66 100644
--- a/fml/lib/FML/Process/Command.pm
+++ b/fml/lib/FML/Process/Command.pm
@@ -3,7 +3,7 @@
# Copyright (C) 2000,2001,2002 Ken'ichi Fukamachi
# All rights reserved.
#
-# $FML: Command.pm,v 1.69 2002/08/03 10:35:08 fukachan Exp $
+# $FML: Command.pm,v 1.70 2002/08/03 13:13:24 fukachan Exp $
#
package FML::Process::Command;
@@ -651,8 +651,9 @@ sub _evaluate_command_lines
# is_admin: whether From: is a member of admin users.
# is_auth: authenticated or not by e.g. password
my $cred = $curproc->{ credential };
- my $is_member = $cred->is_member($curproc, $args);
- my $is_admin = $cred->is_privileged_member($curproc, $args);
+ my $sender = $cred->sender();
+ my $is_member = $cred->is_member($sender);
+ my $is_admin = $cred->is_privileged_member($sender);
my $is_auth = 0;
my $status = {
is_auth => $is_auth,