diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-08 17:38:35 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-08 17:38:35 +0200 |
commit | 52f6599748ef61219112111dc5db71f3342b076d (patch) | |
tree | e3627ded64b7e98493ca1ec7bd182aaa1774252e /pyload/datatypes | |
parent | MultiHosters: moved settings to addon plugins. (diff) | |
download | pyload-52f6599748ef61219112111dc5db71f3342b076d.tar.xz |
adapted account api to multi user, fixed http referer bug
Diffstat (limited to 'pyload/datatypes')
-rw-r--r-- | pyload/datatypes/User.py | 5 |
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 |