Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVilem Duha <vilem.duha@gmail.com>2021-05-17 20:12:43 +0300
committerVilem Duha <vilem.duha@gmail.com>2021-05-17 20:12:43 +0300
commit1cbc6e28421fee3fb0aaa2cb7c3c9b257e8c6cb6 (patch)
tree490823e0b6326de71f44b77ce17e906cb22eace5 /blenderkit/upload.py
parent4f961d71dc55b15e1ebe26c8302bcdd2800b60dd (diff)
BlenderKit: minor UI fixes
Diffstat (limited to 'blenderkit/upload.py')
-rw-r--r--blenderkit/upload.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/blenderkit/upload.py b/blenderkit/upload.py
index 9fd54187..b1d20f94 100644
--- a/blenderkit/upload.py
+++ b/blenderkit/upload.py
@@ -567,14 +567,6 @@ def update_free_full(self, context):
" based on our fair share system. " \
"Part of subscription is sent to artists based on usage by paying users.")
-def user_is_owner(asset_data=None):
- '''Checks if the current logged in user is owner of the asset'''
- profile = bpy.context.window_manager.get('bkit profile')
- if profile is None:
- return False
- if int(asset_data['author']['id']) == int(profile['user']['id']):
- return True
- return False
def can_edit_asset(active_index=-1, asset_data=None):
if active_index < 0 and not asset_data: