On Nov 26, 2007 10:38 PM, Marieke Vandamme <[EMAIL PROTECTED]> wrote: > > That was my last solution, because i hoped it could be integrated with the > auth-roles so i didn't have to check the role myself. Because if i'm right, > before adding the tab to the list, i check with the role from the user's > session?
So did you try using @AuthorizeAction(action = Action.RENDER, roles = Roles.ADMIN)? That way you could just add the panels and they wouldn't be rendered when the user isn't authorized. And you can keep the actual authorization code out of your normal component construction code. Eelco --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]