@TransactionAttribute(TransactionAttributeType.MANDATORY)
public class UsersDAO extends BaseEntityDAO<Users> {
public UsersDAO() {
super(Users.class);
}
<BUG>public Users checkLogin(String session, Users.RoleType role) throws SecurityException {
Users user = getUserBySession(session);</BUG>
if (user == null
|| user.getRole() == null
|| (!role.equals(user.getRole()) && !( user.getRole().equals(Users.RoleType.admin)|| user.getRole().equals(Users.RoleType.projectmanager)))

@TransactionAttribute(TransactionAttributeType.MANDATORY)
public class UsersDAO extends BaseEntityDAO<Users> {
public UsersDAO() {
super(Users.class);
}
public Users checkLogin(String session, Users.RoleType role) {
Users user = getUserBySession(session);
if (user == null
|| user.getRole() == null
|| (!role.equals(user.getRole()) && !( user.getRole().equals(Users.RoleType.admin)|| user.getRole().equals(Users.RoleType.projectmanager)))
