canvas-lms/app/jsx/discussions
Jackson Howe ff92ddcdcd Allow direct share for teachers in concluded term
Previously, direct share options appeared for users with
manage_content rights in a course. This commit gives direct share
options to users with read_as_admin rights, so any teacher, TA, or
designer can direct share content, even if a course is concluded.

flag=none
Fixes LS-1409

Test plan:
 - Enable direct share on account
 - Create a term where "teachers can access from" is concluded
 - Add course to term
 - In the course as a teacher, verify that direct share functions from
   the following locations (also expect most other menu items to not
   appear):
   - Modules
   - Pages index and individual
   - Discussions index and individual
   - Assignments index and individual
   - Quizzes index and individual
 - Modify term settings to allow access for teachers always
 - Teachers should now see all menu items in above locations, including
   direct share
 - Students should never see any menu options in above locations
 - Disable direct share for account; verify that menus in above
   locations still function

Change-Id: I53b09ed0c535079ab4e811d58de18ab1ef7f6d3a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/248214
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
2020-09-29 15:21:21 +00:00
..
components Allow direct share for teachers in concluded term 2020-09-29 15:21:21 +00:00
reducers Run prettier on app/jsx/ from dashboard to discussions 2019-10-08 17:01:09 +00:00
actions.js Run prettier on app/jsx/ from dashboard to discussions 2019-10-08 17:01:09 +00:00
apiClient.js Fetch things sooner on the dashboard 2019-05-17 15:55:59 +00:00
index.js fix discussions eslint styling 2018-08-17 17:04:02 +00:00
propTypes.js add discussion_topic_index_menu LTI placement 2019-11-22 16:45:10 +00:00
rootReducer.js add discussion_topic_index_menu LTI placement 2019-11-22 16:45:10 +00:00
store.js Update redux-logger to 3.0.6 2018-12-05 18:29:35 +00:00
utils.js Run prettier on app/jsx/ from dashboard to discussions 2019-10-08 17:01:09 +00:00