finos / finos/architecture-as-code

CALM Hub UI displays wrong in memory resources for different namespace when user is not authorised

Open
#2,654 1 comment 1 reaction 1 assignee Claimed by @lbulanti-ms View on GitHub
calm-hub-ui
Dominant language
TypeScript
Stars
399
Forks
138
Avg merge
2d 14h
Merged PRs (30d)
37

Description

## Bug Report

The CALM Hub UI displays the resources that are in memory when a user is trying to access a resource (Architecture, Pattern, etc.) without being authorised to it.

This happens only when a user first view a specific resource in a namespace where they have the correct permission and then go on to try access the same resource in a different namespace.

Example:

user view architectures in finos namespace, the dropdown shows Architecture-1
user tries to view architectures in user-cannot-see-namespace, the dropdown down still shows the in memory Architecture-1

### Steps to Reproduce:
1. start CALM Hub using the secure profile
2. access resource that user can access
3. try to access the same resource that user cannot see

### Expected Result:
I would expect to see the pop up that says user is not authorised to view the resource and in the dropdown in the left no resources are showing in the resource section of the namespace which the user is not authorised to see

### Actual Result:
I see the pop up that says user is not authorised, but in the drop down the in memory architecture is showing

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.