perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Foertsch <torsten.foert...@gmx.net>
Subject Re: PerlSetVar behaviour within <Limit> directive
Date Fri, 23 Jan 2009 11:12:03 GMT
On Fri 23 Jan 2009, Pat Downey wrote:
>   <Limit GET>
>     PerlSetVar CrowdAllowedGroups reader,writer
>     Require valid-user
>   </Limit>
>   <LimitExcept GET>
>     PerlSetVar CrowdAllowedGroups writer
>     Require valid-user
>   </LimitExcept>
> </LocationMatch>
>
> What I'd like is for members of the reader or writer groups to have
> GET access and only members of the writer group to have everything
> else (mainly for POST) access.
>
> The problem seems to be that the 'PerlSetVar CrowdAllowedGroups
> writer' is overwriting the
> 'PerlSetVar CrowdAllowedGroups reader,writer' call for all requests,
> not just the method that I'm trying to limit each setting to.

Then, how about

  PerlSetVar CrowdAllowedGroups reader,writer
  Require valid-user
  <LimitExcept GET>
    PerlSetVar CrowdAllowedGroups writer
  </LimitExcept>


Torsten

-- 
Need professional mod_perl support?
Just hire me: torsten.foertsch@gmx.net

Mime
View raw message