udata 9.1.4.dev31267__py2.py3-none-any.whl → 9.1.4.dev31296__py2.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.
Potentially problematic release.
This version of udata might be problematic. Click here for more details.
- udata/core/organization/api_fields.py +8 -3
- udata/static/chunks/{10.c1c9496ebfc8949f3de2.js → 10.1d9b1714c0289863ba0a.js} +3 -3
- udata/static/chunks/{10.c1c9496ebfc8949f3de2.js.map → 10.1d9b1714c0289863ba0a.js.map} +1 -1
- udata/static/chunks/{11.16618d9eedd3f6a7a3c2.js → 11.4f679f86d5ffcd30c492.js} +3 -3
- udata/static/chunks/{11.16618d9eedd3f6a7a3c2.js.map → 11.4f679f86d5ffcd30c492.js.map} +1 -1
- udata/static/chunks/{13.9cfb8ee33c4d62e33f8a.js → 13.3b62c3f10e53ab2972ea.js} +2 -2
- udata/static/chunks/{13.9cfb8ee33c4d62e33f8a.js.map → 13.3b62c3f10e53ab2972ea.js.map} +1 -1
- udata/static/chunks/{16.d1de045f4bc4b5acdf6b.js → 16.82d786cba62daff0c9d7.js} +2 -2
- udata/static/chunks/{16.d1de045f4bc4b5acdf6b.js.map → 16.82d786cba62daff0c9d7.js.map} +1 -1
- udata/static/chunks/{19.f1ff6cd5816f2d9debc4.js → 19.e66777c7d9d8bd23931e.js} +3 -3
- udata/static/chunks/{19.f1ff6cd5816f2d9debc4.js.map → 19.e66777c7d9d8bd23931e.js.map} +1 -1
- udata/static/chunks/{8.b50a30118e9e2e1ab436.js → 8.0b473c6a35cc483ec333.js} +2 -2
- udata/static/chunks/{8.b50a30118e9e2e1ab436.js.map → 8.0b473c6a35cc483ec333.js.map} +1 -1
- udata/static/chunks/{9.8ad948dd393d38f07a7a.js → 9.5009f558f2268bbe4094.js} +3 -3
- udata/static/chunks/{9.8ad948dd393d38f07a7a.js.map → 9.5009f558f2268bbe4094.js.map} +1 -1
- udata/static/common.js +1 -1
- udata/static/common.js.map +1 -1
- {udata-9.1.4.dev31267.dist-info → udata-9.1.4.dev31296.dist-info}/METADATA +3 -1
- {udata-9.1.4.dev31267.dist-info → udata-9.1.4.dev31296.dist-info}/RECORD +23 -23
- {udata-9.1.4.dev31267.dist-info → udata-9.1.4.dev31296.dist-info}/LICENSE +0 -0
- {udata-9.1.4.dev31267.dist-info → udata-9.1.4.dev31296.dist-info}/WHEEL +0 -0
- {udata-9.1.4.dev31267.dist-info → udata-9.1.4.dev31296.dist-info}/entry_points.txt +0 -0
- {udata-9.1.4.dev31267.dist-info → udata-9.1.4.dev31296.dist-info}/top_level.txt +0 -0
|
@@ -45,7 +45,7 @@ org_ref_fields = api.inherit(
|
|
|
45
45
|
from udata.core.user.api_fields import user_ref_fields # noqa
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
def
|
|
48
|
+
def check_can_access_user_private_info():
|
|
49
49
|
# This endpoint is secure, only organization member has access.
|
|
50
50
|
if request.endpoint == "api.request_membership":
|
|
51
51
|
return True
|
|
@@ -65,8 +65,13 @@ member_user_with_email_fields = api.inherit(
|
|
|
65
65
|
user_ref_fields,
|
|
66
66
|
{
|
|
67
67
|
"email": fields.Raw(
|
|
68
|
-
attribute=lambda o: o.email if
|
|
69
|
-
description="The user email (only present on show organization endpoint if the current user
|
|
68
|
+
attribute=lambda o: o.email if check_can_access_user_private_info() else None,
|
|
69
|
+
description="The user email (only present on show organization endpoint if the current user is member of the organization: admin or editor)",
|
|
70
|
+
readonly=True,
|
|
71
|
+
),
|
|
72
|
+
"last_login_at": fields.Raw(
|
|
73
|
+
attribute=lambda o: o.last_login_at if check_can_access_user_private_info() else None,
|
|
74
|
+
description="The user last connection date (only present on show organization endpoint if the current user is member of the organization: admin or editor)",
|
|
70
75
|
readonly=True,
|
|
71
76
|
),
|
|
72
77
|
},
|