Skip to content

Role check implemented in cohort endpoints - #116

Merged
Jonnashell merged 1 commit into
mainfrom
115-endpoint---check-role-in-cohort-endpoint
Sep 23, 2025
Merged

Jonnashell merged 1 commit into
mainfrom
115-endpoint---check-role-in-cohort-endpoint

Conversation

@romaneriksen

Copy link
Copy Markdown
Contributor

The cohort endpoints now verifies that the role of the logged in user is a teacher in the following endpoints:

  • GetAllCohorts
  • AddUserToCohort
  • DeleteUserfromCohort
  • CreateCohort

The remaining endpoints should be available regardless of the logged in users role

  • GetCohortByUserId
  • GetCohort

@romaneriksen romaneriksen linked an issue Sep 23, 2025 that may be closed by this pull request
@romaneriksen romaneriksen self-assigned this Sep 23, 2025
@Jonnashell
Jonnashell merged commit 0e0ed12 into main Sep 23, 2025
1 check passed
@Jonnashell
Jonnashell deleted the 115-endpoint---check-role-in-cohort-endpoint branch September 23, 2025 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENDPOINT - Check role in cohort endpoint

2 participants