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

Adapted check_enable_home_link to work with the new storage

This commit is contained in:
Valery Sinelnikov 2024-02-26 13:21:36 +04:00
parent 400a5fab7d
commit 1ab8c7aee0

View File

@ -222,7 +222,7 @@ class cifs_applier_user(applier_frontend):
def check_enable_home_link(self, enable_home_link):
if self.storage.get_hkcu_entry(self.sid, enable_home_link):
data = self.storage.get_hkcu_entry(self.sid, enable_home_link).data
return bool(int(data))
return bool(int(data)) if data else None
else:
return False