Skip to content

Commit

Permalink
SAK-21786 adding ability to update site membership role via entitybroker
Browse files Browse the repository at this point in the history
git-svn-id: https://source.sakaiproject.org/svn/entitybroker/trunk@307335 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information
relong76 committed Mar 21, 2014
1 parent 4e40e52 commit ab4df69
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,16 @@ public String createEntity(EntityReference ref, Object entity, Map<String, Objec
roleId = sg.site.getJoinerRole();
}

// SAK-21786
// set the role to the one passed in, if available
if (params.get("memberRole") != null) {
roleId = (String) params.get("memberRole");
}
// set the active status to the one passed in, if available
if (params.get("active") != null) {
active = Boolean.parseBoolean((String) params.get("active"));
}

checkSiteSecurity(sg.site.getId());

// check for a batch add
Expand Down

0 comments on commit ab4df69

Please sign in to comment.