Project

General

Profile

« Previous | Next » 

Revision 36059

Fixed a bug in accept user role

View differences:

modules/uoa-goldoa-service/trunk/src/main/java/eu/dnetlib/goldoa/service/dao/PersonDAO.java
357 357
    }
358 358

  
359 359
    public void acceptUserRole(String userId, String roleId) {
360
        new JdbcTemplate(dataSource).update("update person_role set approved=false where person=? and role=?", new Object[] {userId, roleId}, new int[]{Types.VARCHAR, Types.VARCHAR});
360
        new JdbcTemplate(dataSource).update("update person_role set approved=true where person=? and role=?", new Object[] {userId, roleId}, new int[]{Types.VARCHAR, Types.VARCHAR});
361 361
    }
362 362

  
363 363
    public void rejectUserRole(String userId, String roleId) {

Also available in: Unified diff