Return-Path: Delivered-To: apmail-incubator-jspwiki-user-archive@locus.apache.org Received: (qmail 58280 invoked from network); 26 Jun 2008 19:28:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jun 2008 19:28:16 -0000 Received: (qmail 49732 invoked by uid 500); 26 Jun 2008 19:28:18 -0000 Delivered-To: apmail-incubator-jspwiki-user-archive@incubator.apache.org Received: (qmail 49721 invoked by uid 500); 26 Jun 2008 19:28:18 -0000 Mailing-List: contact jspwiki-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-user@incubator.apache.org Delivered-To: mailing list jspwiki-user@incubator.apache.org Received: (qmail 49710 invoked by uid 99); 26 Jun 2008 19:28:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 12:28:17 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of terry@net-frame.com designates 65.212.180.92 as permitted sender) Received: from [65.212.180.92] (HELO pyramid-03.kattare.com) (65.212.180.92) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 19:27:25 +0000 Received: from [192.168.1.101] (ip72-192-223-99.dc.dc.cox.net [72.192.223.99]) (authenticated bits=0) by pyramid-03.kattare.com (8.13.8/8.13.6) with ESMTP id m5QJRSS5014268 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Thu, 26 Jun 2008 12:27:29 -0700 Subject: Re: ACL filter From: Terry Steichen To: jspwiki-user@incubator.apache.org In-Reply-To: <5d3b96380806260805y1f2af6b3l5458c62e04fc0ed8@mail.gmail.com> References: <5d3b96380806110419y79ed72c0q8188ee1da3c02678@mail.gmail.com> <3CF81586-6BBA-49BB-9CAE-8D729CB46A28@ecyrd.com> <5d3b96380806111448r2b705cdeqc9fb4bda35e10db7@mail.gmail.com> <55910003-C6B5-487D-83B1-E3B7EEE8E4DA@ecyrd.com> <5d3b96380806111455q881a32amb239bfb4df06a564@mail.gmail.com> <5d3b96380806260805y1f2af6b3l5458c62e04fc0ed8@mail.gmail.com> Content-Type: multipart/alternative; boundary="=-s70jvAowYPSAkuLuIc69" Date: Thu, 26 Jun 2008 15:26:36 -0400 Message-Id: <1214508396.6196.139.camel@netframe> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 (2.8.3-2.fc6) X-Virus-Checked: Checked by ClamAV on apache.org --=-s70jvAowYPSAkuLuIc69 Content-Type: text/plain Content-Transfer-Encoding: 7bit Very nicely done. Clever approach and clean implementation. On Thu, 2008-06-26 at 16:05 +0100, Weijian Fang wrote: > An ACL filter is implemented and tested on JSPWiki 2.6.2, see > http://www.jspwiki.org/wiki/ACLFilter. Thanks! > > Cheers, > > Weijian > > > 2008/6/11 Weijian Fang : > > Janne, > > > > Thank you very much! > > > > Cheers, > > > > Weijian > > > > > > 2008/6/11 Janne Jalkanen : > >>>> This should work. It's probably easier to simply reject edits which are > >>>> trying to mess your ACLs; then you don't have to parse/fix things too > >>>> much. > >>>> > >>> How to reject edits in the preSave method? > >> > >> Throw a RedirectException(). Check out the SpamFilter for an example. > >> > >> /Janne > >> > > --=-s70jvAowYPSAkuLuIc69--