summaryrefslogtreecommitdiffstats
path: root/pyload/datatypes
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-08 17:38:35 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-08 17:38:35 +0200
commit52f6599748ef61219112111dc5db71f3342b076d (patch)
treee3627ded64b7e98493ca1ec7bd182aaa1774252e /pyload/datatypes
parentMultiHosters: moved settings to addon plugins. (diff)
downloadpyload-52f6599748ef61219112111dc5db71f3342b076d.tar.xz
adapted account api to multi user, fixed http referer bug
Diffstat (limited to 'pyload/datatypes')
-rw-r--r--pyload/datatypes/User.py5
1 files changed, 5 insertions, 0 deletions
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