From 52f6599748ef61219112111dc5db71f3342b076d Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 8 Aug 2013 17:38:35 +0200 Subject: adapted account api to multi user, fixed http referer bug --- pyload/datatypes/User.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pyload/datatypes') diff --git a/pyload/datatypes/User.py b/pyload/datatypes/User.py index 31c9a55cc..645fd0983 100644 --- a/pyload/datatypes/User.py +++ b/pyload/datatypes/User.py @@ -60,4 +60,9 @@ class User(UserData): Secondary user account share id with primary user. Only Admins have no primary id. """ if self.hasRole(Role.Admin): return None + return self.true_primary + + @property + def true_primary(self): + """ Primary handle that does not distinguish admin accounts """ return self.user if self.user else self.uid \ No newline at end of file -- cgit v1.2.3