Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(getAppRoles): change permissions #827

Conversation

tfjanjua
Copy link
Contributor

@tfjanjua tfjanjua commented Jul 10, 2024

Description

view_clinet_roles is supposed to get used when it comes to actual role assignment. Since the App Manager is not supposed to assign roles to company users, the permission is not expected to be assigned.
Instead the permission of the following endpoints need to get switched

  • GET /api/apps/AppChange/{appId}/roles => new permission validation edit_apps
  • GET /api/apps/AppReleaseProcess/{appId}/roles => new permission validation add_apps

Why

App manager encounters 403 error on Technical Integration while registering an app.

Issue

Refs: 826

Checklist

Please delete options that are not relevant.

  • I have followed the contributing guidelines
  • I have performed a self-review of my own code
  • I have successfully tested my changes locally
  • I have checked that new and existing tests pass locally with my changes

permission 'view_client_roles' has been changed for the following APIs

GET /api/apps/AppChange/{appId}/roles => new permission validation as 'edit_apps'
GET /api/apps/AppReleaseProcess/{appId}/roles => new permission validation as 'add_apps'

[Refs: 826](eclipse-tractusx#826)
@tfjanjua
Copy link
Contributor Author

tfjanjua commented Jul 10, 2024

PR has been raised from release branch https://github.com/eclipse-tractusx/portal-backend/tree/release/v2.1.0-RC1 as per @evegufy 's request.

#826 (comment)

@evegufy evegufy changed the title fix(getAppRoles): permission changes fix(getAppRoles): change permissions Jul 10, 2024
@evegufy evegufy merged commit 7e1447a into eclipse-tractusx:release/v2.1.0-RC1 Jul 10, 2024
15 checks passed
@tfjanjua tfjanjua self-assigned this Jul 10, 2024
@tfjanjua tfjanjua added bug Something isn't working good first issue Good for newcomers labels Jul 10, 2024
@tfjanjua tfjanjua modified the milestone: Release 2.1.0 Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants