Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/maven/fixes/9.0' into maven/rele…
Browse files Browse the repository at this point in the history
…ase/9.0
  • Loading branch information
metaventis-build committed Oct 10, 2024
2 parents 56867b5 + 64831e8 commit 6125163
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public NodeUrls(Node node, String requestedVersion) {
repositoryBaseUrl = URLHelper.getBaseUrl(true);
if(node.getAspects().contains(CCConstants.getValidLocalName(CCConstants.CCM_ASPECT_LTITOOL_NODE))){
generateLtiResourceLink = repositoryBaseUrl + "/rest/ltiplatform/v13/generateLoginInitiationFormResourceLink?nodeId=" + node.getRef().getId();
if(Context.getCurrentInstance() != null && Context.getCurrentInstance().getSessionAttribute(CCConstants.AUTH_SINGLE_USE_NODEIDS) != null){
if(Context.getCurrentInstance() != null){
if(Context.getCurrentInstance().isSingleUseNodeId(node.getRef().getId())){
//generate short living jwt
try {
Expand Down
6 changes: 5 additions & 1 deletion Frontend/src/app/core-ui-module/render-helper.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ export class RenderHelperService {
}

private getCollectionsContainingNode(node: Node): Observable<Node[]> {
const id = this.getOriginalId(node);
let id = this.getOriginalId(node);
// a childobject can never be in a collection, but its parent may
if (node.aspects?.includes(RestConstants.CCM_ASPECT_IO_CHILDOBJECT)) {
id = node.parent?.id;
}
return this.networkService.isFromHomeRepository(node).pipe(
switchMap((home) => {
if (home) {
Expand Down

0 comments on commit 6125163

Please sign in to comment.