diff options
| author | fukachan <fukachan> | 2002-02-18 12:30:48 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-02-18 12:30:48 +0000 |
| commit | 4ecc0e57f4089cad88392e3e52fd4b27557a03d1 (patch) | |
| tree | 2aa612dd431deb55d10b4eb9fe3b975429587513 /fml | |
| parent | a048b258676d66c62b5c3df494eed21d78e3a061 (diff) | |
| download | fml8-4ecc0e57f4089cad88392e3e52fd4b27557a03d1.tar.gz fml8-4ecc0e57f4089cad88392e3e52fd4b27557a03d1.tar.bz2 fml8-4ecc0e57f4089cad88392e3e52fd4b27557a03d1.zip | |
"permit_anyone" can be used in {post,command}_restrictions.
Diffstat (limited to 'fml')
| -rw-r--r-- | fml/etc/default_config.cf.ja.in | 14 | ||||
| -rw-r--r-- | fml/etc/src/config.cf.ja/acl.cf | 14 | ||||
| -rw-r--r-- | fml/lib/FML/Process/Kernel.pm | 5 |
3 files changed, 28 insertions, 5 deletions
diff --git a/fml/etc/default_config.cf.ja.in b/fml/etc/default_config.cf.ja.in index faa8e9e4..acf8f243 100644 --- a/fml/etc/default_config.cf.ja.in +++ b/fml/etc/default_config.cf.ja.in @@ -97,7 +97,12 @@ message_message_dir = $fml_share_dir/message/$template_file_charset # Descriptions: 投稿への制限 # History: fml 4.0 の PERMIT_POST_FROM と REJECT_ADDR を合体したもの -# Value: list of attributes +# Value: list of attributes ( +# permit_anyone +# permit_members_only +# reject_system_accounts +# reject +# ) # Examples: post_restrictions = reject_system_accounts permit_members_only @@ -105,7 +110,12 @@ post_restrictions = reject_system_accounts # Descriptions: コマンドへの制限 # History: fml 4.0 の PERMIT_COMMAND_FROM と REJECT_ADDR を合体したもの -# Value: list of attributes +# Value: list of attributes ( +# permit_anyone +# permit_members_only +# reject_system_accounts +# reject +# ) # Examples: command_restrictions = reject_system_accounts permit_members_only diff --git a/fml/etc/src/config.cf.ja/acl.cf b/fml/etc/src/config.cf.ja/acl.cf index 331cb580..d81b4f3d 100644 --- a/fml/etc/src/config.cf.ja/acl.cf +++ b/fml/etc/src/config.cf.ja/acl.cf @@ -2,7 +2,12 @@ # Descriptions: 投稿への制限 # History: fml 4.0 の PERMIT_POST_FROM と REJECT_ADDR を合体したもの -# Value: list of attributes +# Value: list of attributes ( +# permit_anyone +# permit_members_only +# reject_system_accounts +# reject +# ) # Examples: post_restrictions = reject_system_accounts permit_members_only @@ -10,7 +15,12 @@ post_restrictions = reject_system_accounts # Descriptions: コマンドへの制限 # History: fml 4.0 の PERMIT_COMMAND_FROM と REJECT_ADDR を合体したもの -# Value: list of attributes +# Value: list of attributes ( +# permit_anyone +# permit_members_only +# reject_system_accounts +# reject +# ) # Examples: command_restrictions = reject_system_accounts permit_members_only diff --git a/fml/lib/FML/Process/Kernel.pm b/fml/lib/FML/Process/Kernel.pm index 4f5bc8b1..57a20fbb 100644 --- a/fml/lib/FML/Process/Kernel.pm +++ b/fml/lib/FML/Process/Kernel.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: Kernel.pm,v 1.73 2002/02/01 12:03:56 fukachan Exp $ +# $FML: Kernel.pm,v 1.74 2002/02/17 13:46:55 fukachan Exp $ # package FML::Process::Kernel; @@ -482,6 +482,9 @@ sub _check_resitrictions return 0; } } + elsif ($rule eq 'permit_anyone') { + return 1; + } elsif ($rule eq 'permit_members_only') { # Q: the mail sender is a ML member? if ($cred->is_member($curproc, $args)) { |
