Return-Path: Delivered-To: apmail-jakarta-turbine-user-archive@www.apache.org Received: (qmail 79535 invoked from network); 16 Jan 2004 17:19:29 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Jan 2004 17:19:29 -0000 Received: (qmail 85147 invoked by uid 500); 16 Jan 2004 17:19:20 -0000 Delivered-To: apmail-jakarta-turbine-user-archive@jakarta.apache.org Received: (qmail 84850 invoked by uid 500); 16 Jan 2004 17:19:18 -0000 Mailing-List: contact turbine-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Turbine Users List" Reply-To: "Turbine Users List" Delivered-To: mailing list turbine-user@jakarta.apache.org Received: (qmail 84836 invoked from network); 16 Jan 2004 17:19:17 -0000 Received: from unknown (HELO dave.cbc-companies.com) (68.22.157.6) by daedalus.apache.org with SMTP; 16 Jan 2004 17:19:17 -0000 Received: from emailsurf (avenue.cbc-companies.com [172.16.91.45]) by dave.cbc-companies.com (8.12.10/8.12.6) with ESMTP id i0GHJKpj019062 for ; Fri, 16 Jan 2004 12:19:20 -0500 Received: from Unknown [172.16.91.59] by emailsurf - SurfControl E-mail Filter (4.7); Fri, 16 Jan 2004 12:25:12 -0500 Message-ID: From: "Mark Lybarger" To: "Turbine Users List" Date: Fri, 16 Jan 2004 12:20:37 -0500 Subject: RE: turbine security - viewing access in template MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: content-class: urn:content-classes:message Thread-Topic: turbine security - viewing access in template Thread-Index: AcPauE7k7BYRPNbDRqi9zmiKwSNyTQBnAFMQ X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N i don't know if i have default group setup or not, but it doesn't seem to w= ork i'm using: #set ($role =3D "Event") #if ($data.getACL().hasRole($role)) User has role $role
#end where the user definately had that role in all their groups. and nothing is= displayed. i try to add a group but again nothing: #set ($role =3D "Event") #set ($group =3D "Admin") #if ($data.getACL().hasRole($role,$group)) User has role $role, $group
#end i am able to use the following: #set ($permission =3D "entry") #set ($group =3D "Admin") #if ( $data.getACL().hasPermission("entry","Admin") ) User has permission ${permission}, group ${group} =09 #end and it displays that the user has a particular permission in a group. does = the getACL().hasRole( role, group) not work the way i'm using it? > -----Original Message----- > From: Jeff Painter [mailto:painter@kiasoft.com] > Sent: Wednesday, January 14, 2004 11:03 AM > To: Turbine Users List > Subject: RE: turbine security - viewing access in template >=20 >=20 >=20 > in your velocity template you can do the following >=20 > >=20 > On Wed, 14 Jan 2004, Mark Lybarger wrote: >=20 > >=20 > >=20 > > > -----Original Message----- > > > From: Mark Lybarger =20 >=20 > > > basicaly, i'm after a method which i can check a users=20 > > > security (see if user's group has a particular role) from=20 > > > within a velocity template. i have combo box that i need to=20 > > > display if the user is of a c ertain security, otherwise, i=20 > > > need to disable the combo box and have the default option be=20 > > > the selected option. ie, certain users can override shipping=20 > > > costs when submitting an order or something like that.=20 > > >=20 > > > thanks! > > >=20 > > > ~mark > > >=20 >=20 >=20 > Regards, >=20 > Jeffery Painter >=20 > - -- > painter@kiasoft.com http://kiasoft.com > PGP FP: 9CE8 83A2 33FA 32B1 0AB1 4E62 E4CB E4DA 5913 EFBC >=20 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (GNU/Linux) > =20 > iD8DBQE/qEQE5Mvk2lkT77wRAnMJAJ9vJ6qOkg/mvqqIpz7troCEQJ8bFACglu/U > YNXabx7DZOV2Hd9LwSTmGpY=3D > =3DdWiu > -----END PGP SIGNATURE----- >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: turbine-user-help@jakarta.apache.org >=20 >=20 >=20 > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.560 / Virus Database: 352 - Release Date: 1/8/2004 > =20 >=20 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.560 / Virus Database: 352 - Release Date: 1/8/2004 =20 --------------------------------------------------------------------- To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: turbine-user-help@jakarta.apache.org