-
Oct 17th, 2012, 05:08 PM
#1
Simple way to test isUserInRole within expression
Hi,
I was wondering if there's anything built-in to webflow allowing access to test user's roles;
I'm aware of the "secured" attribute on a flow, but what I'm really interested in here is a way to evaluate whether a user is in a given role from an EL expression.
Right now, I'm doing "externalContext.nativeRequest.isUserInRole('THE_R OLE')"...is there a better/recommended way to do this without delegating to the native request?
( I noticed that just using "externalContext.isUserInRole('THE_ROLE')" always returns false, regardless of whether the user is in the role or not )
The more general scope is that I'm trying to define a decision/action state at the beginning of a flow which sends the user to a different initial view state depending on whether they are in a particular role.
Thanks!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules