Skip to content

Commit 4ddeff4

Browse files
committed
Default to current container access if no group is specified.
1 parent dda3a2e commit 4ddeff4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

issues/src/org/labkey/issue/IssuesController.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,9 @@ public Object execute(UserGroupForm form, BindException errors)
17921792
// ensure group is in scope for the container
17931793
boolean inScope = group != null && getSelectableAssignmentGroups(getContainer(), getUser())
17941794
.stream().anyMatch(g -> g.getUserId() == group.getUserId());
1795-
if (inScope)
1795+
// if either the specified group is null or we can't resolve the group we default to all
1796+
// users with update in the current container.
1797+
if (inScope || group == null)
17961798
{
17971799
return IssueManager.getUsersForGroup(getContainer(), group)
17981800
.map(user -> {

0 commit comments

Comments
 (0)