1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Adapted to work with the new storage

This commit is contained in:
Valery Sinelnikov 2024-02-08 12:00:09 +04:00
parent c8b0927090
commit e0d88cc076

View File

@ -79,8 +79,8 @@ class samba_backend(applier_backend):
checked only if working for user's SID.
'''
upm = self.storage.get_key_value(self.__user_policy_mode_key)
if upm and upm.data:
upm = int(upm.data)
if upm:
upm = int(upm)
if upm < 0 or upm > 2:
upm = 0
else: