summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Command/Auth.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-05-28 13:36:59 +0000
committerfukachan <fukachan>2002-05-28 13:36:59 +0000
commit26e697d5ed2da8b62f65fb2d0e284913cc27a697 (patch)
tree58fdc238f9fa9fe5d289dd6a7f293cc808d8e870 /fml/lib/FML/Command/Auth.pm
parent243307fec4a9957bf1f78bc1d6fad7e77396a631 (diff)
downloadfml8-26e697d5ed2da8b62f65fb2d0e284913cc27a697.tar.gz
fml8-26e697d5ed2da8b62f65fb2d0e284913cc27a697.tar.bz2
fml8-26e697d5ed2da8b62f65fb2d0e284913cc27a697.zip
implement permit_admin_member_maps()
Diffstat (limited to 'fml/lib/FML/Command/Auth.pm')
-rw-r--r--fml/lib/FML/Command/Auth.pm19
1 files changed, 18 insertions, 1 deletions
diff --git a/fml/lib/FML/Command/Auth.pm b/fml/lib/FML/Command/Auth.pm
index 35f06bb1..5653182b 100644
--- a/fml/lib/FML/Command/Auth.pm
+++ b/fml/lib/FML/Command/Auth.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: Auth.pm,v 1.5 2002/04/10 09:57:22 fukachan Exp $
+# $FML: Auth.pm,v 1.6 2002/05/27 08:59:15 fukachan Exp $
#
package FML::Command::Auth;
@@ -56,6 +56,8 @@ sub new
# Return Value: NUM
sub reject
{
+ my ($self, $curproc, $args, $optargs) = @_;
+
return '__LAST__';
}
@@ -66,10 +68,25 @@ sub reject
# Return Value: NUM
sub permit_anyone
{
+ my ($self, $curproc, $args, $optargs) = @_;
+
return 1;
}
+sub permit_admin_member_maps
+{
+ my ($self, $curproc, $args, $optargs) = @_;
+ my $cred = $curproc->{ credential };
+ my $match = $cred->is_privileged_member($curproc, $args);
+
+ if ($match) {
+ Log("found in admin_member_maps");
+ return 1;
+ }
+}
+
+
# Descriptions: virtual reject handler, just return 0 :-)
# Arguments: OBJ($self) HASH_REF($args)
# Side Effects: none