Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,20 @@
* <p>
* Changes related to v5-groups-api
* </p>
*
* @author dushyantb
* @version 1.1
* Version 1.2 (Fixing serilization error for ProjectGroup):
* <ul>
* <li>Added serlization version id to avoid marshlling errors</li>
* </ul>
* @author dushyantb, vikasrohit
* @version 1.2
*/

public class ProjectGroup implements Serializable {
/**
* Unique seriliazation version id
*/
private static final long serialVersionUID = 652485342267757690L;

/**
* Represents group id
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3876,6 +3876,7 @@ public static Set<Map<String, String>> getGroupsFromApi(TCSubject tcSubject, Str

if (!DirectUtils.isCockpitAdmin(tcSubject) && !DirectUtils.isTcStaff(tcSubject)) {
uri.setParameter("memberId", String.valueOf(tcSubject.getUserId()));
uri.setParameter("membershipType", "user");
}

uri.setParameter(PER_PAGE, PER_PAGE_VALUE);
Expand Down