oarepo-runtime 1.5.78__py3-none-any.whl → 1.5.80__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- oarepo_runtime/services/config/link_conditions.py +2 -3
- {oarepo_runtime-1.5.78.dist-info → oarepo_runtime-1.5.80.dist-info}/METADATA +1 -1
- {oarepo_runtime-1.5.78.dist-info → oarepo_runtime-1.5.80.dist-info}/RECORD +7 -7
- {oarepo_runtime-1.5.78.dist-info → oarepo_runtime-1.5.80.dist-info}/LICENSE +0 -0
- {oarepo_runtime-1.5.78.dist-info → oarepo_runtime-1.5.80.dist-info}/WHEEL +0 -0
- {oarepo_runtime-1.5.78.dist-info → oarepo_runtime-1.5.80.dist-info}/entry_points.txt +0 -0
- {oarepo_runtime-1.5.78.dist-info → oarepo_runtime-1.5.80.dist-info}/top_level.txt +0 -0
@@ -79,9 +79,8 @@ class has_permission(Condition):
|
|
79
79
|
class has_file_permission(has_permission):
|
80
80
|
def __call__(self, obj: RecordBase, ctx: dict):
|
81
81
|
if isinstance(obj, FileRecord):
|
82
|
-
|
83
|
-
|
84
|
-
service = get_file_service_for_record_class(type(obj))
|
82
|
+
obj = obj.record
|
83
|
+
service = get_file_service_for_record_class(type(obj))
|
85
84
|
try:
|
86
85
|
return service.check_permission(
|
87
86
|
action_name=self.action_name, record=obj, **ctx
|
@@ -76,7 +76,7 @@ oarepo_runtime/services/generators.py,sha256=j87HitHA_w2awsz0C5IAAJ0qjg9JMtvdO3d
|
|
76
76
|
oarepo_runtime/services/results.py,sha256=Ap2mUJHl3V4BSduTrBWPuco0inQVq0QsuCbVhez48uY,5705
|
77
77
|
oarepo_runtime/services/search.py,sha256=9xGTN5Yg6eTdptQ9qjO_umbacf9ooMuHYGXWYfla4-M,6227
|
78
78
|
oarepo_runtime/services/config/__init__.py,sha256=559w4vphVAipa420OwTsxGUP-b7idoqSIX13FSJyVz0,783
|
79
|
-
oarepo_runtime/services/config/link_conditions.py,sha256=
|
79
|
+
oarepo_runtime/services/config/link_conditions.py,sha256=evPRd5XU76Ok4J-08bBfplbHZ019rl74FpJmO8iM5yg,3298
|
80
80
|
oarepo_runtime/services/config/permissions_presets.py,sha256=V0dMrikzTzTiM2NRtdGgTML7AtXlrlYZ_vm3btzbJd4,6472
|
81
81
|
oarepo_runtime/services/config/service.py,sha256=s-dVbGkLICpsce6jgu7b5kzYFz9opWjSQFDBgbIhKio,4002
|
82
82
|
oarepo_runtime/services/custom_fields/__init__.py,sha256=_gqMcA_I3rdEZcBtCuDjO4wdVCqFML5NzaccuPx5a3o,2565
|
@@ -133,9 +133,9 @@ tests/marshmallow_to_json/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
|
|
133
133
|
tests/marshmallow_to_json/test_datacite_ui_schema.py,sha256=82iLj8nW45lZOUewpWbLX3mpSkpa9lxo-vK-Qtv_1bU,48552
|
134
134
|
tests/marshmallow_to_json/test_simple_schema.py,sha256=izZN9p0v6kovtSZ6AdxBYmK_c6ZOti2_z_wPT_zXIr0,1500
|
135
135
|
tests/pkg_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
136
|
-
oarepo_runtime-1.5.
|
137
|
-
oarepo_runtime-1.5.
|
138
|
-
oarepo_runtime-1.5.
|
139
|
-
oarepo_runtime-1.5.
|
140
|
-
oarepo_runtime-1.5.
|
141
|
-
oarepo_runtime-1.5.
|
136
|
+
oarepo_runtime-1.5.80.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
|
137
|
+
oarepo_runtime-1.5.80.dist-info/METADATA,sha256=qJ58orVlLavE7lvAQCY0eQtGoEBlwdx71Zu4m4M7Ex8,4720
|
138
|
+
oarepo_runtime-1.5.80.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
139
|
+
oarepo_runtime-1.5.80.dist-info/entry_points.txt,sha256=k7O5LZUOGsVeSpB7ulU0txBUNp1CVQG7Q7TJIVTPbzU,491
|
140
|
+
oarepo_runtime-1.5.80.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
|
141
|
+
oarepo_runtime-1.5.80.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|