HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2013-01-21 3419f107df5b1f5c9e389dcf5b27e575a86cf7cf
fix error in adding new object with hostmaster privileges
5 files modified
5 ■■■■■ changed files
hsarback/src/de/hsadmin/mods/db/MySqlDatabaseModuleImpl.java 1 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/db/MySqlUserModuleImpl.java 1 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/db/PgSqlDatabaseModuleImpl.java 1 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/db/PgSqlUserModuleImpl.java 1 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/email/EMailAliasModuleImpl.java 1 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/db/MySqlDatabaseModuleImpl.java
@@ -54,6 +54,7 @@
        if (!pac.getName().equals(pacPrefix)) {
            throw new HSAdminException("wrong database owner");
        }
        database.setPac(pac);
        return super.add(newEntity);
    }
    
hsarback/src/de/hsadmin/mods/db/MySqlUserModuleImpl.java
@@ -35,6 +35,7 @@
        if (pac == null || !pac.isReadAllowedFor(loginUser)) {
            throw new AuthorisationException(loginUser, "add", newEntity);
        }
        user.setPac(pac);
        return super.add(newEntity);
    }
hsarback/src/de/hsadmin/mods/db/PgSqlDatabaseModuleImpl.java
@@ -52,6 +52,7 @@
        if (!pac.getName().equals(pacPrefix)) {
            throw new HSAdminException("wrong database owner");
        }
        database.setPac(pac);
        return super.add(newEntity);
    }
    
hsarback/src/de/hsadmin/mods/db/PgSqlUserModuleImpl.java
@@ -30,6 +30,7 @@
        if (pac == null || !pac.isReadAllowedFor(loginUser)) {
            throw new AuthorisationException(loginUser, "add", newEntity);
        }
        user.setPac(pac);
        return super.add(newEntity);
    }
hsarback/src/de/hsadmin/mods/email/EMailAliasModuleImpl.java
@@ -44,6 +44,7 @@
        if (!name.startsWith(pac.getName())) {
            throw new AuthorisationException(loginUser, "add", newEntity);
        }
        alias.setPac(pac);
        return super.add(newEntity);
    }