refactor: fix scene item removal

This commit is contained in:
Swann 2021-06-03 15:03:09 +02:00
parent a059fafe12
commit 07358802f7
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB
3 changed files with 6 additions and 7 deletions

View File

@ -576,11 +576,11 @@ class BlScene(ReplicatedDatablock):
diff_params = { diff_params = {
'exclude_paths': exclude_path, 'exclude_paths': exclude_path,
# 'ignore_order': True, 'ignore_order': True,
# 'report_repetition': True 'report_repetition': True
} }
delta_params = { delta_params = {
'mutate': True # 'mutate': True
} }
return Delta( return Delta(

@ -1 +1 @@
Subproject commit b3537f99a5a4006a7590d1f9b3f4859e3b9be95e Subproject commit a40741185955a8f8700f4ebeb14d4d83e3186718

View File

@ -235,15 +235,14 @@ class DynamicRightSelectTimer(Timer):
# Fix deselection until right managment refactoring (with Roles concepts) # Fix deselection until right managment refactoring (with Roles concepts)
if len(current_selection) == 0 : if len(current_selection) == 0 :
owned_keys = session.list( owned_keys = session.list(filter_owner=settings.username)
filter_owner=settings.username)
for key in owned_keys: for key in owned_keys:
node = session.repository.get_node(key) node = session.repository.get_node(key)
try: try:
porcelain.unlock(session.repository, porcelain.unlock(session.repository,
key, key,
ignore_warnings=True, ignore_warnings=True,
affect_dependencies=recursive) affect_dependencies=True)
except NonAuthorizedOperationError: except NonAuthorizedOperationError:
logging.warning( logging.warning(
f"Not authorized to change {key} owner") f"Not authorized to change {key} owner")