Skip to content

Commit

Permalink
Correct access control for MMS groups.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-signal authored and alex-signal committed May 14, 2020
1 parent b800477 commit 75f3fe0
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -690,7 +690,7 @@ public GroupAccessControl getMembershipAdditionAccessControl() {
}
return GroupAccessControl.ONLY_ADMINS;
} else {
return GroupAccessControl.ALL_MEMBERS;
return id.isV1() ? GroupAccessControl.ALL_MEMBERS : GroupAccessControl.ONLY_ADMINS;
}
}

Expand All @@ -704,7 +704,7 @@ public GroupAccessControl getAttributesAccessControl() {
}
return GroupAccessControl.ONLY_ADMINS;
} else {
return GroupAccessControl.ALL_MEMBERS;
return id.isV1() ? GroupAccessControl.ALL_MEMBERS : GroupAccessControl.ONLY_ADMINS;
}
}
}
Expand Down

0 comments on commit 75f3fe0

Please sign in to comment.