From d379af7852903476dc16037d540cec0ceb174a8b Mon Sep 17 00:00:00 2001 From: Purodha Blissenbach Date: Wed, 18 Jul 2012 16:18:26 +0000 Subject: [PATCH] vorher vergessene SQL statements endlich nachgeliefert. --- hsarback/database/data.sql | 8 ++++++++ hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java | 1 + 2 files changed, 9 insertions(+) diff --git a/hsarback/database/data.sql b/hsarback/database/data.sql index 368bbac..e9a7963 100644 --- a/hsarback/database/data.sql +++ b/hsarback/database/data.sql @@ -150,3 +150,11 @@ INSERT INTO unixuser (name, comment, shell, homedir, locked, packet_id, userid) INSERT INTO unixuser (name, comment, shell, homedir, locked, packet_id, userid) SELECT 'hsh01-ad', 'hostmaster ad', '/bin/bash', '/home/pacs/hsh01/users/ad', FALSE, packet_id, 10003 FROM packet WHERE packet_name='hsh01'; + +-- +-- table: domain_option +-- +INSERT INTO domain_option (domain_option_name) + VALUES ('graylisting); +INSERT INTO domain_option (domain_option_name) + VALUES ('htdocsfallback'); diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java index aa85427..5dd552a 100644 --- a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java +++ b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java @@ -152,6 +152,7 @@ public class DomainModuleImpl extends AbstractModuleImpl { } if (!admin.getName().equals(oldDom.getUser().getName())) { throw new AuthorisationException(loginUser, "update", existingEntity, "user"); + // Sollte in Zukunft erlaubt werden. } Query q = em.createQuery("SELECT opt FROM " + DomainOption.class.getAnnotation(javax.persistence.Entity.class).name() +