fix: change rights

This commit is contained in:
Swann 2021-06-02 17:49:22 +02:00
parent 392e0aaaa3
commit e7b7f38991
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB

View File

@ -444,11 +444,13 @@ class SessionPropertyRightOperator(bpy.types.Operator):
if session: if session:
if runtime_settings.clients == RP_COMMON: if runtime_settings.clients == RP_COMMON:
session.unlock(self.key, porcelain.unlock(session.repository,
ignore_warnings=True, self.key,
affect_dependencies=self.recursive) ignore_warnings=True,
affect_dependencies=self.recursive)
else: else:
session.lock(self.key, porcelain.lock(session.repository,
self.key,
runtime_settings.clients, runtime_settings.clients,
ignore_warnings=True, ignore_warnings=True,
affect_dependencies=self.recursive) affect_dependencies=self.recursive)