Skip to content

securityContext.isCallerInRole allways return false #1

@IvanMayal

Description

@IvanMayal

Hello Fabio,

I've learned a lot with your code. The login works perfect and I've been able to deploy the project with Netbeans and Payara.
Just a question. The code
public boolean isAllowedToSeeUsers(){
return securityContext.isCallerInRole("admin");
}
Always returns false. Do you know how to fix it?

Thanks by sharing your code

Ivan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions