Changeset 20463
- Timestamp:
- 02/24/10 08:41:41 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/core/src/net/project/notification/SubscriptionBean.java
r20443 r20463 39 39 import net.project.security.group.GroupException; 40 40 import net.project.security.group.GroupTypeID; 41 import net.project.security.group.PrincipalGroup; 41 42 import net.project.space.Space; 42 43 import net.project.space.SpaceFactory; … … 105 106 106 107 try { 107 if (this.space != null) { 108 groupList.setSpace(space); 109 } else if (this.spaceID != null) { 110 Space space = SpaceFactory.constructSpaceFromID(this.spaceID); 111 groupList.setSpace(space); 112 } else if (spaceID != null) { 108 109 if (spaceID != null) { 113 110 Space space = SpaceFactory.constructSpaceFromID(spaceID); 114 111 groupList.setSpace(space); … … 127 124 participants.append("<td nowrap>"); 128 125 129 if (checkForSubscribers(group.getID())){130 participants.append("<input type=checkbox checked name='teamMembers' value=\"" + group.getID() + "\">" +126 if (group.isPrincipal() && ((PrincipalGroup) group).getOwnerID().equals(user.getID())){ 127 participants.append("<input type=checkbox checked=checked name='teamMembers' value=\"" + group.getID() + "\">" + 131 128 HTMLUtils.escape(display) + "\n"); 132 129 } else { trunk/core/src/net/project/security/group/GroupCollection.java
r20378 r20463 590 590 // Query to load groups by space for a specific space and order by display name 591 591 query.append(GroupDAO.getQueryLoadSpaceGroups()); 592 query.append(" and shg.space_id = ? ");592 query.append(" and is_owner = 1 and shg.space_id = ? "); 593 593 bindVariables.add(this.currentSpace.getID()); 594 594 if(isOrderBySort){
