Convert enrollment_end_editable = GlobalStaff().has_user(request.user) or not marketing_site_enabled to use user.has_perm

Description

On or around line 1059 of cms/djangoapps/contentstore/views/course.py, convert enrollment_end_editable = GlobalStaff().has_user(request.user) or not marketing_site_enabled to use user.has_perm(EDIT_ENROLLMENT_END) instead.
Define EDIT_ENROLLMENT_END = 'contentstore.edit_enrollment_end' in contentstore/permissions.py
Add perms[EDIT_ENROLLMENT_END] = 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