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 = {
'exclude_paths': exclude_path,
# 'ignore_order': True,
# 'report_repetition': True
'ignore_order': True,
'report_repetition': True
}
delta_params = {
'mutate': True
# 'mutate': True
}
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)
if len(current_selection) == 0 :
owned_keys = session.list(
filter_owner=settings.username)
owned_keys = session.list(filter_owner=settings.username)
for key in owned_keys:
node = session.repository.get_node(key)
try:
porcelain.unlock(session.repository,
key,
ignore_warnings=True,
affect_dependencies=recursive)
affect_dependencies=True)
except NonAuthorizedOperationError:
logging.warning(
f"Not authorized to change {key} owner")