Skip to content

Conversation

@livzorn
Copy link
Contributor

@livzorn livzorn commented Sep 21, 2021

JIRA link

HEEDLS-438

Description

Added a check in AdminFieldsController that verifies the user can access the selected course on the following pages: Manage admin fields, Edit admin field, Configure answers in bulk (in edit and add journeys), Remove admin field, and Add admin field. Only AdminUsers with the correct CentreID and CategoryID should be able to access these pages. This means that they have the same CentreID as the customisation, and either have the same CategoryID as the customisation's course category OR CategoryID = 0, which means they can manage all courses. If a customisationID that the user cannot access is entered in the url they should be directed to a NotFound page.

I also fixed the capitalization of the (ViewData["Title"]) on all the course admin fields pages.

Screenshots

image


Developer checks

I have:

  • Run the formatter and made sure there are no IDE errors.
  • Written tests for the changes (controller, data services, services, view models etc) and manually tested my work with and without JavaScript. Full manual testing guidelines can be found here: https://softwiretech.atlassian.net/wiki/spaces/HEE/pages/6703648740/Testing
  • Updated/added documentation in Swiki and/or Readme.
  • Updated my Jira ticket with information about other parts of the system that were touched as part of the MR and have to be sanity tested to ensure nothing’s broken.
  • Scanned over my own MR to ensure everything is as expected.

Copy link
Contributor

@DanBloxham-sw DanBloxham-sw left a comment

Choose a reason for hiding this comment

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

Couple of minor things to double check.

@livzorn livzorn force-pushed the HEEDLS-438-add-course-admin-fields branch from b6c9e4b to 6f0e6f5 Compare September 23, 2021 15:10
@livzorn livzorn force-pushed the HEEDLS-438-add-course-admin-fields branch from 6f0e6f5 to 9b75755 Compare September 28, 2021 13:34
@livzorn livzorn force-pushed the HEEDLS-438-add-course-admin-fields branch from 0cd569e to b70791e Compare October 1, 2021 10:26
Copy link
Contributor

@stellake stellake left a comment

Choose a reason for hiding this comment

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

Added 3 really minor comments, but otherwise looks good. No need to re-review 👍

@livzorn livzorn merged commit fbff1e8 into master Oct 1, 2021
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.

4 participants