|
|
|
@ -69,9 +69,9 @@ public class ListMember {
@@ -69,9 +69,9 @@ public class ListMember {
|
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
if (member == null) { |
|
|
|
|
ListMember.create(list, moderator, ListMember.STATE_MODERATOR); |
|
|
|
|
ListMember.create(list, moderator, STATE_MODERATOR); |
|
|
|
|
} else { |
|
|
|
|
member.setState((member.state | STATE_MODERATOR) ^ STATE_AWAITING_CONFIRMATION); |
|
|
|
|
member.setState(Util.unset(member.state|STATE_MODERATOR,STATE_AWAITING_CONFIRMATION)); |
|
|
|
|
} |
|
|
|
|
} catch (SQLException e) { |
|
|
|
|
LOG.warn("Ernennen von {} zum Moderator von {} fehlgeschlagen",moderator.email(),list.email(),e); |
|
|
|
@ -212,7 +212,7 @@ public class ListMember {
@@ -212,7 +212,7 @@ public class ListMember {
|
|
|
|
|
if (member == null) { |
|
|
|
|
ListMember.create(list, moderator, ListMember.STATE_SUBSCRIBER); |
|
|
|
|
} else { |
|
|
|
|
member.setState(ListMember.STATE_SUBSCRIBER); |
|
|
|
|
member.setState(Util.unset(member.state,STATE_MODERATOR)); |
|
|
|
|
} |
|
|
|
|
} catch (SQLException e) { |
|
|
|
|
LOG.warn("Ernennen von {} zum normalen Abonnenten von {} fehlgeschlagen",moderator.email(),list.email(),e); |
|
|
|
|