From e7b7f38991b673f4712e432c90238fd63fd2dd09 Mon Sep 17 00:00:00 2001 From: Swann Date: Wed, 2 Jun 2021 17:49:22 +0200 Subject: [PATCH] fix: change rights --- multi_user/operators.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/multi_user/operators.py b/multi_user/operators.py index 4e74151..9c6df9a 100644 --- a/multi_user/operators.py +++ b/multi_user/operators.py @@ -444,11 +444,13 @@ class SessionPropertyRightOperator(bpy.types.Operator): if session: if runtime_settings.clients == RP_COMMON: - session.unlock(self.key, - ignore_warnings=True, - affect_dependencies=self.recursive) + porcelain.unlock(session.repository, + self.key, + ignore_warnings=True, + affect_dependencies=self.recursive) else: - session.lock(self.key, + porcelain.lock(session.repository, + self.key, runtime_settings.clients, ignore_warnings=True, affect_dependencies=self.recursive)