Subject: The mailing list for listmasters using Sympa
List archive
[sympa-users] Patch: make Post button inactive if user can't send
- From: "Adam Bernstein" <address@concealed>
- To: <address@concealed>
- Subject: [sympa-users] Patch: make Post button inactive if user can't send
- Date: Fri, 21 Jan 2005 10:47:32 -0800
I think someone asked about this on the list long ago, and
was told that the order in which templates were loaded made
it impossible to have the Post button link depend on what
permissions the user has. Something like that. But I've
just made a two-line modification (twice), and it seems to
work fine, so I'll make it available here as well as in the
bug tracking system. Hopefully it can be integrated.
In the two routines in wwsympa.fcgi, check_param_in() and
check_param_out(), where may_post is set to 1 currently,
substitute these two lines for the one line that does that:
#May post:
my $action = &List::request_action ('send',$param->{'auth_method'},$robot,
{'listname' => $param->{'list'},
'sender' => $param->{'user'}'email'},
'remote_host' => $param->{'remote_host'},
'remote_addr' =>
$param->{'remote_addr'}});
$param->{'may_post'} = 1 if ($action =~ /do_it/);
ab
--
----Electric Embers: Powering the fires of change--------------------
NPOGroups | NPOMail | NPOShield | web/database/email hosting
----http://electricembers.net ------ A member of N-TEN (nten.org)----
-
[sympa-users] Patch: make Post button inactive if user can't send,
Adam Bernstein, 01/21/2005
-
Re: [sympa-users] Patch: make Post button inactive if user can't send,
Olivier Salaün - CRU, 01/24/2005
-
RE: [sympa-users] Patch: make Post button inactive if user can't send,
Adam Bernstein, 01/26/2005
- Re: [sympa-users] Patch: make Post button inactive if user can't send, Olivier Salaün - CRU, 01/26/2005
-
RE: [sympa-users] Patch: make Post button inactive if user can't send,
Adam Bernstein, 01/26/2005
-
Re: [sympa-users] Patch: make Post button inactive if user can't send,
Olivier Salaün - CRU, 01/24/2005
Archive powered by MHonArc 2.6.19+.