BTW - in case it wasn't clear - for the second example, the method
argument would be substituted into the permission expression based on
argument name.
On Dec 15, 2008, at 4:51 PM, Jeremy Haile wrote:
I'm not sure if this is a 1.0 feature, but I'd love to see "EL-like"
support.
For example: (not trying to indicate syntax, just the idea)
@Secured( "hasRole('manager') or hasPermission('sendNewsletter')")
public void sendNewsletter();
Another example:
@Secured( "hasPermission('sendNewsletter:$newsletterId')")
public void sendNewsletter( String newsletterId )
Ideally this syntax would also be supported in the URL rules as well.
On Dec 15, 2008, at 4:43 PM, Les Hazlewood wrote:
Hi Peter,
Because Grails JSecurity plugin users represent a sizeable chunk of
the
JSecurity end-user community, is there anything that isn't yet on
the radar
for 1.0 that you think should be in JSecurity core as opposed to
just in the
plugin?
I just want to make sure that we can make your life as easy as
possible,
because odds are very high that if Grails end-users want something,
other
non-Grails JSecurity users would want similar things.
Do you see things in your plugin that you feel would be beneficial
to any
JSecurity user? Or any JSecurity-enabled web environment?
Cheers,
Les