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 runtime_settings.clients == RP_COMMON:
session.unlock(self.key,
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)