Author | Message |
---|---|
nextmatrixman
Posts: 57
|
Posted 23:04 Jul 22, 2015 |
Dr. Sun, I'm using your model for HW4 and there's the code below for the user role: @ElementCollection ... public User() { public boolean isAdmin() { public boolean isReviewer() { I've populated the "authorities" table with user ID and role name, such as (1, 'ROLE_ADMIN'). But when I try to access an admin user's role using the isAdmin() method, it returned a 'false'. Can you give a hint on how to correctly identify the role of a user? |
cysun
Posts: 2935
|
Posted 07:32 Jul 23, 2015 |
Just debug. |