Hi,
imagine the following url:
secured byCode:/users/{id}
Code:<intercept-url pattern="/users/*" access="hasRole('admin')"/>
Now I what that not only admin-users are allowed to access this url but normal users too, but only if the user-id represents themself.
How could this be done?Code:<intercept-url pattern="/users/{id}" access="hasRole('admin') or (hasRole('user') and principal.id == id)"/>
Thank you


Reply With Quote
