udata 10.1.3.dev34347__py2.py3-none-any.whl → 10.1.3.dev34359__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 +3 -1
- udata/core/user/api_fields.py +5 -0
- udata/static/chunks/{10.8ca60413647062717b1e.js → 10.471164b2a9fe15614797.js} +3 -3
- udata/static/chunks/{10.8ca60413647062717b1e.js.map → 10.471164b2a9fe15614797.js.map} +1 -1
- udata/static/chunks/{11.b6f741fcc366abfad9c4.js → 11.51d706fb9521c16976bc.js} +3 -3
- udata/static/chunks/{11.b6f741fcc366abfad9c4.js.map → 11.51d706fb9521c16976bc.js.map} +1 -1
- udata/static/chunks/{13.2d06442dd9a05d9777b5.js → 13.f29411b06be1883356a3.js} +2 -2
- udata/static/chunks/{13.2d06442dd9a05d9777b5.js.map → 13.f29411b06be1883356a3.js.map} +1 -1
- udata/static/chunks/{17.e8e4caaad5cb0cc0bacc.js → 17.3bd0340930d4a314ce9c.js} +2 -2
- udata/static/chunks/{17.e8e4caaad5cb0cc0bacc.js.map → 17.3bd0340930d4a314ce9c.js.map} +1 -1
- udata/static/chunks/{19.f03a102365af4315f9db.js → 19.8da42e8359d72afc2618.js} +3 -3
- udata/static/chunks/{19.f03a102365af4315f9db.js.map → 19.8da42e8359d72afc2618.js.map} +1 -1
- udata/static/chunks/{8.778091d55cd8ea39af6b.js → 8.54e44b102164ae5e7a67.js} +2 -2
- udata/static/chunks/{8.778091d55cd8ea39af6b.js.map → 8.54e44b102164ae5e7a67.js.map} +1 -1
- udata/static/chunks/{9.033d7e190ca9e226a5d0.js → 9.07515e5187f475bce828.js} +3 -3
- udata/static/chunks/{9.033d7e190ca9e226a5d0.js.map → 9.07515e5187f475bce828.js.map} +1 -1
- udata/static/common.js +1 -1
- udata/static/common.js.map +1 -1
- {udata-10.1.3.dev34347.dist-info → udata-10.1.3.dev34359.dist-info}/METADATA +2 -1
- {udata-10.1.3.dev34347.dist-info → udata-10.1.3.dev34359.dist-info}/RECORD +24 -24
- {udata-10.1.3.dev34347.dist-info → udata-10.1.3.dev34359.dist-info}/LICENSE +0 -0
- {udata-10.1.3.dev34347.dist-info → udata-10.1.3.dev34359.dist-info}/WHEEL +0 -0
- {udata-10.1.3.dev34347.dist-info → udata-10.1.3.dev34359.dist-info}/entry_points.txt +0 -0
- {udata-10.1.3.dev34347.dist-info → udata-10.1.3.dev34359.dist-info}/top_level.txt +0 -0
|
@@ -82,7 +82,9 @@ member_user_with_email_fields = api.inherit(
|
|
|
82
82
|
readonly=True,
|
|
83
83
|
),
|
|
84
84
|
"last_login_at": fields.Raw(
|
|
85
|
-
attribute=lambda o: o.
|
|
85
|
+
attribute=lambda o: o.current_login_at
|
|
86
|
+
if check_can_access_user_private_info()
|
|
87
|
+
else None,
|
|
86
88
|
description="The user last connection date (only present on show organization endpoint if the current user is member of the organization: admin or editor)",
|
|
87
89
|
readonly=True,
|
|
88
90
|
),
|
udata/core/user/api_fields.py
CHANGED
|
@@ -61,6 +61,11 @@ user_fields = api.model(
|
|
|
61
61
|
"since": fields.ISODateTime(
|
|
62
62
|
attribute="created_at", description="The registeration date", required=True
|
|
63
63
|
),
|
|
64
|
+
"last_login_at": fields.Raw(
|
|
65
|
+
attribute=lambda o: o.current_login_at if current_user_is_admin_or_self() else None,
|
|
66
|
+
description="The user last connection date (only present for global admins and on /me)",
|
|
67
|
+
readonly=True,
|
|
68
|
+
),
|
|
64
69
|
"page": fields.UrlFor(
|
|
65
70
|
"users.show",
|
|
66
71
|
lambda u: {"user": u},
|