Convert if not GlobalStaff().has_user(request.user): to use user.has_perm

Description

On or around line 316 of cms/djangoapps/contentstore/views/course.py, convert if not GlobalStaff().has_user(request.user): to use user.has_perm(REINDEX_COURSE) instead.
Define REINDEX_COURSE = 'contentstore.reindex_course' in contentstore/permissions.py
Add perms[REINDEX_COURSE] = HasAccessRule(...) to contentstore/permissions.py
See https://github.com/edx/edx-platform/pull/21255/files as an example.
This issue was generated from https://docs.google.com/spreadsheets/d/1WyP5TQUp8xhhtYndNFJDDeCc1g1nz-3YJye-xdG8IPI/edit#gid=284364275&fvid=912579421

Status

Assignee

Unassigned

Reporter

Calen Pennington

Labels

None

Priority

Unset
Configure