Fix ability cl-desktop by user.

master
Mike Hiretsky 13 years ago
parent a8c1c6cc26
commit 32bcbb6e0a

@ -185,7 +185,14 @@ class desktop(share):
def createHome(self, progress=False):
"""Создание профиля пользователя (пользовательской директории)"""
# Имя пользователя
uid = os.getuid()
try:
realUserName = pwd.getpwuid(uid).pw_name
except:
realUserName = ""
userName = self.clVars.Get("ur_login")
if userName != realUserName and not self.isRoot():
return False
uidGid = False
# Домен для подключения Samba
domain = self.clVars.GetIniVar("client.cl_remote_host")

Loading…
Cancel
Save