You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Sgarlata Matt <sg...@bah.com> on 2003/08/28 22:35:06 UTC
[PROPOSAL] upgrade
Hi,
I'm not sure if I'm submitting this idea correctly and/or to the correct
list, but I have an idea on how to improve on the <req:isUserInRole>
tag. To make a long story short, I think the user should be able to
specify a comma-separated list of roles instead of a single role like this:
<req:isUserInRole role="role1,admin">
The remote user is in role "role1" or in role "admin".
</req:isUserInRole>
<req:isUserInRole role="role1,admin" value="false">
The remote user is neither in role "role1" nor in role "admin".
</req:isUserInRole>
There currently really is no clean way to do a check like this.
What does everyone think? I would be more than happy to provide write
this functionality and submit it to bugzilla if it will actually get
incorporated.
Matt
Re: [PROPOSAL] upgrade
Posted by "K.C. Baltz" <kc...@lollimail.com>.
If it's useful to you, I'd say go for it. As long as it doesn't
destabilize the current code, I suspect the commiters will add it.
K.C.
Sgarlata Matt wrote:
> Hi,
>
> I'm not sure if I'm submitting this idea correctly and/or to the
> correct list, but I have an idea on how to improve on the
> <req:isUserInRole> tag. To make a long story short, I think the user
> should be able to specify a comma-separated list of roles instead of a
> single role like this:
>
> <req:isUserInRole role="role1,admin">
> The remote user is in role "role1" or in role "admin".
> </req:isUserInRole>
> <req:isUserInRole role="role1,admin" value="false">
> The remote user is neither in role "role1" nor in role "admin".
> </req:isUserInRole>
>
> There currently really is no clean way to do a check like this.
>
> What does everyone think? I would be more than happy to provide write
> this functionality and submit it to bugzilla if it will actually get
> incorporated.
>
> Matt
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>