Files
edx-platform/lms/djangoapps/certificates/permissions.py
2020-04-08 23:43:06 +05:00

15 lines
522 B
Python

"""
Permission definitions for the certificates djangoapp
"""
from bridgekeeper import perms
from lms.djangoapps.courseware.rules import HasAccessRule
PREVIEW_CERTIFICATES = 'certificates.preview_certificates'
perms[PREVIEW_CERTIFICATES] = HasAccessRule('staff')
VIEW_ALL_CERTIFICATES = 'certificates.view_all_certificates'
perms[VIEW_ALL_CERTIFICATES] = HasAccessRule('certificates')
GENERATE_ALL_CERTIFICATES = 'certificates.generate_all_certificates'
perms[GENERATE_ALL_CERTIFICATES] = HasAccessRule('certificates')