Skip to content

Commit

Permalink
Bugfix for RemoteManage query for applications by GUID
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Sep 26, 2023
1 parent 3d83c35 commit 33b9e55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions client/src/components/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ export const User = ({user, other}) => {
const [query, setQuery] = useState("");
const [queryApplication, setQueryApplication] = useState("");

if (user.institutionAdmin) {
(user.applications || []).forEach(application => deriveRemoteApplicationAttributes(application, I18n.locale));
}

useEffect(() => {
if (searchRef && searchRef.current) {
searchRef.current.focus();
}
if (user.institutionAdmin) {
(user.applications || []).forEach(application => deriveRemoteApplicationAttributes(application, I18n.locale));
}
}, [searchRef, user])

const attribute = (index, name, isDate = false) => {
Expand Down
1 change: 1 addition & 0 deletions client/src/locale/nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ const nl = {
edit: "Bewerk rol {{name}}",
urn: "URN",
advanced: "Advanced settings",
override: "Kunnen de instellingen worden veranderd bij een uitnodiging?",
manage: "Dienst",
manageMetaData: "Entity",
provisioning: "Provisioning",
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/java/access/manage/RemoteManage.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public List<Map<String, Object>> allowedEntries(EntityType entityType, String id
@Override
public List<Map<String, Object>> providersByInstitutionalGUID(String organisationGUID) {
Map<String, Object> baseQuery = (Map<String, Object>) this.queries.get("base_query");
baseQuery.put("coin:institution_guid", organisationGUID);
baseQuery.put("metaDataFields.coin:institution_guid", organisationGUID);
List serviceProviders = restTemplate.postForObject(
String.format("%s/manage/api/internal/search/%s", this.url, EntityType.SAML20_SP.collectionName()),
baseQuery, List.class);
Expand Down

0 comments on commit 33b9e55

Please sign in to comment.