HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2013-07-15 c0413f7debf0cfbbb5779b93ef926637c9639676
fix error update postgresql database owner
1 files modified
4 ■■■■ changed files
hsarback/src/de/hsadmin/mods/db/PgSqlDatabaseModuleImpl.java 4 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/db/PgSqlDatabaseModuleImpl.java
@@ -75,8 +75,8 @@
        Transaction transaction = getTransaction();
        EntityManager em = transaction.getEntityManager();
        UnixUser unixUser = transaction.getLoginUser();
        MySqlDatabase detachtedDB = (MySqlDatabase) existingEntity;
        MySqlDatabase attachedDB = em.find(MySqlDatabase.class, detachtedDB.getId());
        PgSqlDatabase detachtedDB = (PgSqlDatabase) existingEntity;
        PgSqlDatabase attachedDB = em.find(PgSqlDatabase.class, detachtedDB.getId());
        if (!attachedDB.getName().equals(detachtedDB.getName())) {
            throw new AuthorisationException(unixUser, "update", existingEntity, "name");
        }