Added GroupMembership for group membership checks.
This replaces existing uses of a Set to determine membership and will make it possible to integrate with group systems that do not allow efficient enumentation of memberships. Change-Id: Iba9842ca1a355fc100fb4a02d7954d89032cdba0
This commit is contained in:
@@ -70,7 +70,7 @@ public abstract class ChangeEmail extends OutgoingEmail {
|
||||
|
||||
/** Is the from user in an email squelching group? */
|
||||
final IdentifiedUser user = args.identifiedUserFactory.create(id);
|
||||
final Set<AccountGroup.UUID> gids = user.getEffectiveGroups();
|
||||
final Set<AccountGroup.UUID> gids = user.getEffectiveGroups().getKnownGroups();
|
||||
for (final AccountGroup.UUID gid : gids) {
|
||||
AccountGroup group = args.groupCache.get(gid);
|
||||
if (group != null && group.isEmailOnlyAuthors()) {
|
||||
|
Reference in New Issue
Block a user