learning-credentials 0.3.0rc1__py3-none-any.whl → 0.3.0rc3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- learning_credentials/api/v1/permissions.py +3 -0
- learning_credentials/apps.py +4 -4
- {learning_credentials-0.3.0rc1.dist-info → learning_credentials-0.3.0rc3.dist-info}/METADATA +1 -1
- {learning_credentials-0.3.0rc1.dist-info → learning_credentials-0.3.0rc3.dist-info}/RECORD +8 -8
- {learning_credentials-0.3.0rc1.dist-info → learning_credentials-0.3.0rc3.dist-info}/entry_points.txt +0 -3
- {learning_credentials-0.3.0rc1.dist-info → learning_credentials-0.3.0rc3.dist-info}/WHEEL +0 -0
- {learning_credentials-0.3.0rc1.dist-info → learning_credentials-0.3.0rc3.dist-info}/licenses/LICENSE.txt +0 -0
- {learning_credentials-0.3.0rc1.dist-info → learning_credentials-0.3.0rc3.dist-info}/top_level.txt +0 -0
|
@@ -47,6 +47,9 @@ class CanAccessLearningContext(BasePermission):
|
|
|
47
47
|
msg = "Invalid learning context key."
|
|
48
48
|
raise ParseError(msg) from e
|
|
49
49
|
|
|
50
|
+
if request.user.is_staff:
|
|
51
|
+
return True
|
|
52
|
+
|
|
50
53
|
if learning_context_key.is_course:
|
|
51
54
|
if bool(get_course_enrollments(learning_context_key, request.user.id)):
|
|
52
55
|
return True
|
learning_credentials/apps.py
CHANGED
|
@@ -26,9 +26,9 @@ class LearningCredentialsConfig(AppConfig):
|
|
|
26
26
|
'common': {'relative_path': 'settings.common'},
|
|
27
27
|
'production': {'relative_path': 'settings.production'},
|
|
28
28
|
},
|
|
29
|
-
'cms.djangoapp': {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
29
|
+
# 'cms.djangoapp': {
|
|
30
|
+
# 'common': {'relative_path': 'settings.common'},
|
|
31
|
+
# 'production': {'relative_path': 'settings.production'},
|
|
32
|
+
# },
|
|
33
33
|
},
|
|
34
34
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
learning_credentials/__init__.py,sha256=8Q0-3Hdnfmcj41EKu1GSfzEfwWcYNDlItyEEke2r9bs,62
|
|
2
2
|
learning_credentials/admin.py,sha256=ynK3tVJwLsIeV7Jk66t1FAVyVsU1G-KRIAdRkycVTmA,10439
|
|
3
|
-
learning_credentials/apps.py,sha256=
|
|
3
|
+
learning_credentials/apps.py,sha256=COijTeVYYFZgQP_-gHJNy2ITqhFT0dfimC0PtYwnynM,1136
|
|
4
4
|
learning_credentials/compat.py,sha256=g32MLgTnSZLGa6H3Qsq1WIPJXWPlFaNVuyZfbZXsKR8,4832
|
|
5
5
|
learning_credentials/core_api.py,sha256=ZVNPm7SQk54roZ8rmZ0Bc6T6NLvumKWJZjJepAxM6L8,3232
|
|
6
6
|
learning_credentials/exceptions.py,sha256=UaqBVXFMWR2Iob7_LMb3j4NNVmWQFAgLi_MNMRUvGsI,290
|
|
@@ -13,7 +13,7 @@ learning_credentials/xblocks.py,sha256=gb-bfkOlRnBzwUg7CTqBJfg-BOJ1UOtaBQRmbyGuD
|
|
|
13
13
|
learning_credentials/api/__init__.py,sha256=q8sLFfwo5RwQu8FY6BJUL_Jrt3TUojbZK-Zlw9v08EM,40
|
|
14
14
|
learning_credentials/api/urls.py,sha256=JfGSbzvC5d7s9dRq4C0d-AzTDuOVnen3wvFYSJQoEdQ,255
|
|
15
15
|
learning_credentials/api/v1/__init__.py,sha256=A7ZqENtM4QM1A7j_cAfnzw4zn0kuyfXSWtylFIE0_f8,43
|
|
16
|
-
learning_credentials/api/v1/permissions.py,sha256=
|
|
16
|
+
learning_credentials/api/v1/permissions.py,sha256=DZMa2A6Q1ltPdWCksr7I8Ltv_qV46B9yvMM0UXXWo8E,2379
|
|
17
17
|
learning_credentials/api/v1/serializers.py,sha256=c4gNva-OzBUfmKHFOgsb1Ti1GiHSnsyIeT3gYBt7fMk,2685
|
|
18
18
|
learning_credentials/api/v1/urls.py,sha256=n8CTXgKyXyCkgNr210Jl5c5HQ2bZ1iEYMNLSnaB39Hc,585
|
|
19
19
|
learning_credentials/api/v1/views.py,sha256=LrlHRzURWi_zEii_zq55CH05tpC2ZqPhZLyebx1Jy8M,13606
|
|
@@ -37,9 +37,9 @@ learning_credentials/templates/learning_credentials/edx_ace/certificate_generate
|
|
|
37
37
|
learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/from_name.txt,sha256=-n8tjPSwfwAfeOSZ1WhcCTrpOah4VswzMZ5mh63Pxow,20
|
|
38
38
|
learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/head.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
39
|
learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/subject.txt,sha256=S7Hc5T_sZSsSBXm5_H5HBNNv16Ohl0oZn0nVqqeWL0g,132
|
|
40
|
-
learning_credentials-0.3.
|
|
41
|
-
learning_credentials-0.3.
|
|
42
|
-
learning_credentials-0.3.
|
|
43
|
-
learning_credentials-0.3.
|
|
44
|
-
learning_credentials-0.3.
|
|
45
|
-
learning_credentials-0.3.
|
|
40
|
+
learning_credentials-0.3.0rc3.dist-info/licenses/LICENSE.txt,sha256=GDpsPnW_1NKhPvZpZL9imz25P2nIpbwJPEhrlq4vPAU,34523
|
|
41
|
+
learning_credentials-0.3.0rc3.dist-info/METADATA,sha256=w2ZPv1NQwUcgWG_lKtmTDT9XoJLH3WBqfEVqvlNTW1A,6864
|
|
42
|
+
learning_credentials-0.3.0rc3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
43
|
+
learning_credentials-0.3.0rc3.dist-info/entry_points.txt,sha256=6aT7brHXkmLp829ZgV8t9R__wXLsLOsYKmZWOvPlGyc,166
|
|
44
|
+
learning_credentials-0.3.0rc3.dist-info/top_level.txt,sha256=Ce-4_leZe_nny7CpmkeRiemcDV6jIHpIvLjlcQBuf18,21
|
|
45
|
+
learning_credentials-0.3.0rc3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{learning_credentials-0.3.0rc1.dist-info → learning_credentials-0.3.0rc3.dist-info}/top_level.txt
RENAMED
|
File without changes
|