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.
@@ -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
@@ -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
- 'common': {'relative_path': 'settings.common'},
31
- 'production': {'relative_path': 'settings.production'},
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
  Metadata-Version: 2.4
2
2
  Name: learning-credentials
3
- Version: 0.3.0rc1
3
+ Version: 0.3.0rc3
4
4
  Summary: A pluggable service for preparing Open edX credentials.
5
5
  Author-email: OpenCraft <help@opencraft.com>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -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=F3W0q1BCWOm2MxqLr7GsDGkwqvNq3Icxc9OqgomdD7k,1128
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=rXGZ-vPI7LlGraro7rG235SErTlRhRAvOLd6AXxKHL0,2320
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.0rc1.dist-info/licenses/LICENSE.txt,sha256=GDpsPnW_1NKhPvZpZL9imz25P2nIpbwJPEhrlq4vPAU,34523
41
- learning_credentials-0.3.0rc1.dist-info/METADATA,sha256=pW2uukeXV9BBRrZdx9FauhLR4AFSSj3oTHq70FU6rsw,6864
42
- learning_credentials-0.3.0rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
43
- learning_credentials-0.3.0rc1.dist-info/entry_points.txt,sha256=kaYKfkH1k_yFaGqe-MXjBxA5RsjkqOLxz7XLrF5BUC0,258
44
- learning_credentials-0.3.0rc1.dist-info/top_level.txt,sha256=Ce-4_leZe_nny7CpmkeRiemcDV6jIHpIvLjlcQBuf18,21
45
- learning_credentials-0.3.0rc1.dist-info/RECORD,,
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,,
@@ -1,6 +1,3 @@
1
- [cms.djangoapp]
2
- learning_credentials = learning_credentials.apps:LearningCredentialsConfig
3
-
4
1
  [lms.djangoapp]
5
2
  learning_credentials = learning_credentials.apps:LearningCredentialsConfig
6
3