Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mGAP/src/org/labkey/mgap/mGAPController.java
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ public Object execute(ApproveUserRequestsForm form, BindException errors) throws
Group g = GroupManager.getGroup(mGapContainer, mGAPManager.GROUP_NAME, GroupEnumType.SITE);
if (g == null)
{
g = SecurityManager.createGroup(ContainerManager.getRoot(), mGAPManager.GROUP_NAME);
g = SecurityManager.createGroup(ContainerManager.getRoot(), mGAPManager.GROUP_NAME, getUser());
}

SecurityManager.addMembers(g, allUsers);
Expand Down
4 changes: 2 additions & 2 deletions mGAP/src/org/labkey/mgap/mGapAuditTypeProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public <K extends AuditTypeEvent> Class<K> getEventClass()

public static void addAuditEntry(Container container, User user, String comment, String type, String releaseVersion)
{
mGapAuditTypeProvider.AuditEvent event = new mGapAuditTypeProvider.AuditEvent(container.getId(), comment);
mGapAuditTypeProvider.AuditEvent event = new mGapAuditTypeProvider.AuditEvent(container, comment);

event.setType(type);
event.setReleaseVersion(releaseVersion);
Expand All @@ -93,7 +93,7 @@ public AuditEvent()
super();
}

public AuditEvent(String container, String comment)
public AuditEvent(Container container, String comment)
{
super(AUDIT_EVENT_TYPE, container, comment);
}
Expand Down
6 changes: 3 additions & 3 deletions mcc/src/org/labkey/mcc/MccController.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,13 +423,13 @@ public Object execute(ApproveUserRequestsForm form, BindException errors) throws
Group g1 = GroupManager.getGroup(mccContainer, MccManager.MCC_GROUP_NAME, GroupEnumType.SITE);
if (g1 == null)
{
g1 = SecurityManager.createGroup(ContainerManager.getRoot(), MccManager.MCC_GROUP_NAME);
g1 = SecurityManager.createGroup(ContainerManager.getRoot(), MccManager.MCC_GROUP_NAME, getUser());
}

Group g2 = GroupManager.getGroup(mccContainer, MccManager.REQUEST_GROUP_NAME, GroupEnumType.SITE);
if (g2 == null)
{
g2 = SecurityManager.createGroup(ContainerManager.getRoot(), MccManager.REQUEST_GROUP_NAME);
g2 = SecurityManager.createGroup(ContainerManager.getRoot(), MccManager.REQUEST_GROUP_NAME, getUser());
}

SecurityManager.addMembers(g1, allUsers);
Expand Down Expand Up @@ -576,7 +576,7 @@ public boolean handlePost(Object o, BindException errors) throws Exception
Group g1 = GroupManager.getGroup(ContainerManager.getRoot(), gn, GroupEnumType.SITE);
if (g1 == null)
{
SecurityManager.createGroup(ContainerManager.getRoot(), gn);
SecurityManager.createGroup(ContainerManager.getRoot(), gn, getUser());
}
}

Expand Down