From 1fe256ff3512436b15c6aa37e1374634fbdd2958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vil=C3=A9m=20Duha?= Date: Sat, 4 Jan 2020 00:08:36 +0100 Subject: BlenderKit: validation tools improvements People who can validate are now recognized from profile info In menu it's possible to put asset on hold besides validation reupload of thumbnails doesn't put asset back to pre-validation state, only main file upload. --- blenderkit/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'blenderkit/search.py') diff --git a/blenderkit/search.py b/blenderkit/search.py index 844b7fd1..1dd7e6c2 100644 --- a/blenderkit/search.py +++ b/blenderkit/search.py @@ -635,7 +635,7 @@ def write_profile(adata): if user.get('remainingPrivateQuota') is not None: user['remainingPrivateQuota'] /= (1024 * 1024) - if user.get('id') == 2: + if adata.get('canEditAllAssets') is True: user['exmenu'] = True else: user['exmenu'] = False @@ -675,7 +675,7 @@ def get_profile(): def profile_is_validator(): a = bpy.context.window_manager.get('bkit profile') - if a is not None and a.get('exmenu'): + if a is not None and a['user'].get('exmenu'): return True return False -- cgit v1.2.3