oarepo-runtime 1.5.126__py3-none-any.whl → 1.5.127__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.
- oarepo_runtime/cli/permissions/base.py +2 -1
- {oarepo_runtime-1.5.126.dist-info → oarepo_runtime-1.5.127.dist-info}/METADATA +1 -1
- {oarepo_runtime-1.5.126.dist-info → oarepo_runtime-1.5.127.dist-info}/RECORD +7 -7
- {oarepo_runtime-1.5.126.dist-info → oarepo_runtime-1.5.127.dist-info}/LICENSE +0 -0
- {oarepo_runtime-1.5.126.dist-info → oarepo_runtime-1.5.127.dist-info}/WHEEL +0 -0
- {oarepo_runtime-1.5.126.dist-info → oarepo_runtime-1.5.127.dist-info}/entry_points.txt +0 -0
- {oarepo_runtime-1.5.126.dist-info → oarepo_runtime-1.5.127.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
from flask import current_app
|
2
|
-
from flask_principal import Identity, identity_loaded
|
2
|
+
from flask_principal import Identity, UserNeed, identity_loaded
|
3
3
|
from invenio_access.models import User
|
4
4
|
|
5
5
|
from ..base import oarepo
|
@@ -18,6 +18,7 @@ def get_user_and_identity(user_id_or_email):
|
|
18
18
|
user = User.query.filter_by(email=user_id_or_email).one()
|
19
19
|
|
20
20
|
identity = Identity(user.id)
|
21
|
+
identity.provides.add(UserNeed(str(user.id)))
|
21
22
|
api_app = current_app.wsgi_app.mounts["/api"]
|
22
23
|
with api_app.app_context():
|
23
24
|
with current_app.test_request_context("/api"):
|
@@ -15,7 +15,7 @@ oarepo_runtime/cli/fixtures.py,sha256=_aMQqPnspG0JuL5ewYTBa3HY1RaoOAI0V2R5q7e5fr
|
|
15
15
|
oarepo_runtime/cli/index.py,sha256=8Q2KZlAWjoMyZ9Ft9WIBJDws0ce15VF12o1tdYUP7AI,8936
|
16
16
|
oarepo_runtime/cli/validate.py,sha256=HpSvHQCGHlrdgdpKix9cIlzlBoJEiT1vACZdMnOUGEY,2827
|
17
17
|
oarepo_runtime/cli/permissions/__init__.py,sha256=2qufYdUoCb9kG7Zy0gKNW5lpRyqbVQSNsf7shLwrThM,198
|
18
|
-
oarepo_runtime/cli/permissions/base.py,sha256=
|
18
|
+
oarepo_runtime/cli/permissions/base.py,sha256=Q5txKaofSzAlTVHn1fu5YurwF16Pkh63YB9U6xWYVAU,804
|
19
19
|
oarepo_runtime/cli/permissions/evaluate.py,sha256=gxkHySd1vM7lSjR-xXzcACkCKDYurl5c567Kq5FVzpM,2086
|
20
20
|
oarepo_runtime/cli/permissions/list.py,sha256=TYntLPqHGCcs73FzHX-nEnh-2TtUoNwRN8aJ5358xE4,9853
|
21
21
|
oarepo_runtime/cli/permissions/search.py,sha256=2e1NHxNk72T93U3eB6BDoSr-qL_O6aySujw0YB4OQmE,3528
|
@@ -148,9 +148,9 @@ tests/marshmallow_to_json/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
|
|
148
148
|
tests/marshmallow_to_json/test_datacite_ui_schema.py,sha256=82iLj8nW45lZOUewpWbLX3mpSkpa9lxo-vK-Qtv_1bU,48552
|
149
149
|
tests/marshmallow_to_json/test_simple_schema.py,sha256=izZN9p0v6kovtSZ6AdxBYmK_c6ZOti2_z_wPT_zXIr0,1500
|
150
150
|
tests/pkg_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
151
|
-
oarepo_runtime-1.5.
|
152
|
-
oarepo_runtime-1.5.
|
153
|
-
oarepo_runtime-1.5.
|
154
|
-
oarepo_runtime-1.5.
|
155
|
-
oarepo_runtime-1.5.
|
156
|
-
oarepo_runtime-1.5.
|
151
|
+
oarepo_runtime-1.5.127.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
|
152
|
+
oarepo_runtime-1.5.127.dist-info/METADATA,sha256=4aWvweqgTFi83q1bLheNPC6kQaAcvdKQNd9BY0gAnJA,4721
|
153
|
+
oarepo_runtime-1.5.127.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
154
|
+
oarepo_runtime-1.5.127.dist-info/entry_points.txt,sha256=k7O5LZUOGsVeSpB7ulU0txBUNp1CVQG7Q7TJIVTPbzU,491
|
155
|
+
oarepo_runtime-1.5.127.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
|
156
|
+
oarepo_runtime-1.5.127.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|