Skip to content

Conversation

@JRB66955
Copy link
Contributor

@JRB66955 JRB66955 commented Nov 7, 2025

TODO:

- work out api routing issue with middleware
- tests tbd

@JRB66955 JRB66955 marked this pull request as ready for review November 11, 2025 16:53
@JRB66955 JRB66955 requested a review from JR40159 November 18, 2025 09:23
ARADDCC002
ARADDCC002 previously approved these changes Nov 18, 2025
@JRB66955 JRB66955 added enhancement New feature or request javascript Pull requests that update Javascript code ready for review labels Nov 18, 2025
* - user is not the owner of the model
* - the user is trying to delete or update an existing AR
*/
if (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this condition should remain as being for updating and deleting an access and request and a new condition should be added for viewing access requests where we reject if the user cannot view the model or is not named on the access request


// authorisation
const modelIds = results.map((result) => result.modelId)
let auths: any[] = []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth creating a return type for authorisation.accessRequests() so we don't have to use any here?

Although tracing through to accessRequests it looks a little more complicated than i thought

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request javascript Pull requests that update Javascript code ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants