Merge pull request #137 from Kitzanos/new-role-changes

Introduced new role- Instructor Manager
This commit is contained in:
rajeshkhore
2024-12-19 20:33:17 +05:30
committed by GitHub
4 changed files with 65 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ public interface AssignedApplicationsApi {
@ExampleObject(value = ErrorConstants.BADREQUEST_ERROR_EXAMPLE) }))
})
@PostMapping(value = "/application/{applicationId}")
@PreAuthorize("hasRole('ROLE_SUPER_ADMIN')")
@PreAuthorize("hasRole('ROLE_SUPER_ADMIN')|| hasRole('ROLE_INSTRUCTOR_MANAGER')")
public ResponseEntity<Response<AssignedApplicationsResponse>> createAssignedApplications(
HttpServletRequest request,
@Parameter(description = "ID of the application", required = true) @PathVariable Long applicationId,