HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2011-07-27 f8de19dd0de015edbd657f84b7295dafee346198
delete pac users
2 files modified
3 ■■■■ changed files
hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java 1 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java 2 ●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java
@@ -138,6 +138,7 @@
        for (UnixUser user : pac.getUnixUser()) {
            if (!pacName.equals(user.getName())) {
                helperModule.delete(user);
                pac.getUnixUser().remove(user);
            }
        }
        super.delete(existingEntity);
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
@@ -149,7 +149,7 @@
        if (unixUserSet.size() == 1) {
            unixUser = unixUserSet.iterator().next();
        } else {
            throw new ProcessorException("package contains users");
            throw new ProcessorException("packet contains users");
        }
        return unixUser;
    }