vorher vergessene SQL statements endlich nachgeliefert.

This commit is contained in:
Purodha Blissenbach 2012-07-18 16:18:26 +00:00
parent a19480f55b
commit d379af7852
2 changed files with 9 additions and 0 deletions

View File

@ -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');

View File

@ -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() +