Convert enrollment_end_editable = GlobalStaff().has_user(request.user) or not marketing_site_enabled to use user.has_perm
INCR-570
Convert if not auth.user_has_role(request.user, CourseCreatorRole()): to use user.has_perm
INCR-569
Convert u'rerun_creator_status': GlobalStaff().has_user(user), to use user.has_perm
INCR-568
Convert if not GlobalStaff().has_user(request.user): to use user.has_perm
INCR-567
Convert if not GlobalStaff().has_user(request.user): to use user.has_perm
INCR-566
Convert if not GlobalStaff().has_user(request.user): to use user.has_perm
INCR-565
Convert if not GlobalStaff().has_user(request.user): to use user.has_perm
INCR-564
Convert is_global_staff': GlobalStaff().has_user(request.user), to use user.has_perm
INCR-563
Convert @require_certificate_permission to use user.has_perm
INCR-562
Convert @require_certificate_permission to use user.has_perm
INCR-561
Use standard django authorization and Bridgekeeper in edx-platform
INCR-560
Fix unit tests for Py35 under ecommerce/core
INCR-559
Remove gevent dependency from ecommerce
INCR-558
Run python-modernize on ecommerce base directory
INCR-557
Run python-modernize on docs : ecommerce
INCR-556
Run python-modernize on ecommerce/theming
INCR-555
Run python-modernize on ecommerce/courses
INCR-554
Run python-modernize on ecommerce/programs
INCR-553
Run python-modernize on ecommerce/journals
INCR-552
Run python-modernize on ecommerce/extensions
INCR-551
Run python-modernize on ecommerce/extensions/refund
INCR-550
Run python-modernize on ecommerce/extensions/catalogue
INCR-549
Run python-modernize on ecommerce/extensions/api
INCR-548
Run python-modernize on ecommerce/extensions/api/v2/tests : ecommerce/extensions/api/v2/views
INCR-547
Run python-modernize on ecommerce/extensions/voucher
INCR-546
Run python-modernize on ecommerce/extensions/dashboard
INCR-545
Run python-modernize on ecommerce/extensions/partner
INCR-544
Run python-modernize on ecommerce/extensions/payment
INCR-543
Run python-modernize on ecommerce/extensions/payment/tests
INCR-542
Run python-modernize on ecommerce/extensions/basket
INCR-541
Run python-modernize on ecommerce/extensions/offer
INCR-540
Run python-modernize on ecommerce/extensions/order
INCR-539
Run python-modernize on ecommerce/referrals:ecommerce/tests
INCR-538
Run python-modernize on ecommerce/enterprise
INCR-537
Run python-modernize on ecommerce/core
INCR-536
Run python-modernize on e2e
INCR-535
Run python-modernize on ecommerce/invoice
INCR-534
Run python-modernize on ecommerce/notifications
INCR-533
Run python-modernize on ecommerce/themes/management
INCR-532
Run python-modernize on ecommerce/social_auth
INCR-531
Run python-modernize on ecommerce/sailthru
INCR-530
Run python-modernize on ecommerce/theming/migrations:ecommerce/theming/tests
INCR-529
Run python-modernize on ecommerce/entitlements
INCR-528
Run python-modernize on ecommerce/courses/tests
INCR-527
Run python-modernize on ecommerce/courses/migrations
INCR-526
Run python-modernize on ecommerce/coupons
INCR-525
Run python-modernize on ecommerce/programs/migrations:ecommerce/programs/tests
INCR-524
Run python-modernize on ecommerce/journals/api
INCR-523
Run python-modernize on ecommerce/journals/fulfillment
INCR-522
Run python-modernize on ecommerce/journals/migrations:ecommerce/journals/tests
INCR-521
issue 1 of 566

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