Skip to content

Commit 5eed7c9

Browse files
committed
Fixes #659
1 parent de56b27 commit 5eed7c9

8 files changed

Lines changed: 3 additions & 29 deletions

File tree

dashboard-gui/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<parent>
33
<groupId>org.openconext</groupId>
44
<artifactId>dashboard</artifactId>
5-
<version>13.0.5</version>
5+
<version>13.0.6</version>
66
<relativePath>../pom.xml</relativePath>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>

dashboard-gui/src/javascripts/shapes/app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import PropTypes from 'prop-types'
22

33
export const AppShape = PropTypes.shape({
44
name: PropTypes.string.isRequired,
5-
supportMail: PropTypes.string,
65
supportUrl: PropTypes.string,
76
appUrl: PropTypes.string,
87
websiteUrl: PropTypes.string,

dashboard-server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>org.openconext</groupId>
2121
<artifactId>dashboard</artifactId>
22-
<version>13.0.5</version>
22+
<version>13.0.6</version>
2323
<relativePath>../pom.xml</relativePath>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>

dashboard-server/src/main/java/dashboard/control/ServicesController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ public List<String[]> download(@RequestBody Map<String, Object> body,
149149
stripBreakingWhitespace(service.getDescription()),
150150
service.getAppUrl(),
151151
service.getWikiUrl(),
152-
service.getSupportMail(),
153152
String.valueOf(service.isConnected()),
154153
licenseStatus != null ? licenseStatus.name() : LicenseStatus.UNKNOWN.name(),
155154
String.valueOf(service.isExampleSingleTenant()),
@@ -184,7 +183,6 @@ public ResponseEntity<RestResponse<Service>> get(@RequestHeader(HTTP_X_IDP_ENTIT
184183
.valueOf(entityType), locale);
185184
CoinUser currentUser = SpringSecurity.getCurrentUser();
186185
return serviceByEntityId
187-
.map(service -> service.sanitize(currentUser))
188186
.map(service -> ResponseEntity.ok(createRestResponse(service)))
189187
.orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));
190188
}

dashboard-server/src/main/java/dashboard/control/UsersController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ public ResponseEntity<RestResponse<Map<String, List<?>>>> idps() {
285285
public RestResponse<List<Service>> serviceProviders(Locale locale) throws IOException {
286286
CoinUser currentUser = SpringSecurity.getCurrentUser();
287287
List<Service> usersServices = getServiceProvidersForCurrentUser(locale).stream()
288-
.map(service -> service.sanitize(currentUser))
289288
.toList();
290289

291290
return createRestResponse(usersServices);

dashboard-server/src/main/java/dashboard/domain/Service.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public class Service implements Comparable<Service>, Serializable {
4949
private String supportUrl;
5050
private String eulaUrl;
5151
private String wikiUrl;
52-
private String supportMail;
5352
private String enduserDescription;
5453
private String institutionDescription;
5554
private String institutionId;
@@ -238,14 +237,6 @@ public void setScreenshotUrls(List<String> screenshotUrls) {
238237
this.screenshotUrls = screenshotUrls;
239238
}
240239

241-
public String getSupportMail() {
242-
return supportMail;
243-
}
244-
245-
public void setSupportMail(String supportMail) {
246-
this.supportMail = supportMail;
247-
}
248-
249240
public String getEnduserDescription() {
250241
return enduserDescription;
251242
}
@@ -334,11 +325,6 @@ public void setWikiUrl(String wikiUrl) {
334325
this.wikiUrl = wikiUrl;
335326
}
336327

337-
338-
public void setPublishInEdugainDate(String publishInEdugainDate) {
339-
this.publishInEdugainDate = publishInEdugainDate;
340-
}
341-
342328
public LicenseStatus getLicenseStatus() {
343329
return licenseStatus;
344330
}
@@ -619,10 +605,4 @@ public void setOrganisation(String organisation) {
619605
this.organisation = organisation;
620606
}
621607

622-
public Service sanitize(CoinUser currentUser) {
623-
if (currentUser.isGuest() || currentUser.isDashboardViewer()) {
624-
this.setSupportMail(null);
625-
}
626-
return this;
627-
}
628608
}

dashboard-server/src/main/java/dashboard/service/impl/ServicesImpl.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ private void plainProperties(ServiceProvider sp, Service service) {
124124
service.setEulaUrl(sp.getEulaURL());
125125
service.setDetailLogoUrl(sp.getLogoUrl());
126126
service.setLogoUrl(sp.getLogoUrl());
127-
service.setSupportMail(mailOfContactPerson(sp.getContactPerson(ContactPersonType.support)));
128127
Map<String, String> homeUrls = sp.getHomeUrls();
129128
service.setWebsiteUrl(CollectionUtils.isEmpty(homeUrls) ? null : homeUrls.values().iterator().next());
130129
service.setArp(sp.getArp());
@@ -139,7 +138,6 @@ private void plainProperties(ServiceProvider sp, Service service) {
139138
service.setEntityCategories1(sp.getEntityCategories1());
140139
service.setEntityCategories2(sp.getEntityCategories2());
141140
service.setEntityCategories3(sp.getEntityCategories3());
142-
service.setPublishInEdugainDate(sp.getPublishInEdugainDate());
143141
service.setStrongAuthentication(sp.isStrongAuthenticationEnabled());
144142
service.setMinimalLoaLevel(sp.getMinimalLoaLevel());
145143
service.setNames(sp.getNames());

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<groupId>org.openconext</groupId>
3333
<artifactId>dashboard</artifactId>
34-
<version>13.0.5</version>
34+
<version>13.0.6</version>
3535
<name>dashboard</name>
3636
<description>OpenConext-Dashboard</description>
3737
<inceptionYear>2012</inceptionYear>

0 commit comments

Comments
 (0)