{
// other valid code
}
I think I am missing something, the code // other valid code is executed when the if condition is true.
Code: Select all
boolean isUserInRole(java.lang.String role)
The code // other valid code will be executed only when boss user is in role.Returns a boolean indicating whether the authenticated user is included in the specified logical "role". Roles and role membership can be defined using deployment descriptors. If the user has not been authenticated, the method returns false.
And the answer would be 'At //other valid code, the user would be in "boss" role.', doesn't it?