summaryrefslogtreecommitdiffstats
path: root/pyload/datatypes/User.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/datatypes/User.py')
-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