1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

Fixed rdesktop folders redirection (signed jar only)

This commit is contained in:
Adolfo Gómez 2013-05-14 17:39:20 +00:00
parent 45ad85025d
commit 9642392d7c
2 changed files with 4 additions and 1 deletions

View File

@ -743,7 +743,10 @@ class User(models.Model):
returns the groups (and metagroups) this user belongs to
'''
if self.parent != -1:
usr = User.objects.get(id=self.parent)
try:
usr = User.objects.get(id=self.parent)
except: # If parent do not exists
usr = self
else:
usr = self