Convert if not auth.user_has_role(request.user, CourseCreatorRole()): to use user.has_perm

Description

On or around line 788 of cms/djangoapps/contentstore/views/course.py, convert if not auth.user_has_role(request.user, CourseCreatorRole()): to use user.has_perm(CREATE_COURSE) instead.
Define CREATE_COURSE = 'contentstore.create_course' in contentstore/permissions.py
Add perms[CREATE_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