diff options
author | Vilém Duha <vilda.novak@gmail.com> | 2020-01-04 02:08:36 +0300 |
---|---|---|
committer | Vilém Duha <vilda.novak@gmail.com> | 2020-01-07 13:43:43 +0300 |
commit | 1fe256ff3512436b15c6aa37e1374634fbdd2958 (patch) | |
tree | b2744aaa229261db0996f5d30a9a8e5535d2566e /blenderkit/search.py | |
parent | ee8ddef20075d1ef8b902516cdd2bcc46e40e783 (diff) |
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.
Diffstat (limited to 'blenderkit/search.py')
-rw-r--r-- | blenderkit/search.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |