Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2012-10-04 20:25:45 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-10-04 20:25:45 (GMT)
commit5e0e38b4817089c60cd4af76ee5aa0a96877b00c (patch)
treece515b06af1959bc24d664b5a441090b998e0a41
parent093ec64e26eb605dc0fa376389e914a87ec3a094 (diff)
Return user guid from whoami command, easy way to know your own sugar uid
-rw-r--r--sugar_network/node/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar_network/node/commands.py b/sugar_network/node/commands.py
index 758bd32..75478d1 100644
--- a/sugar_network/node/commands.py
+++ b/sugar_network/node/commands.py
@@ -215,7 +215,7 @@ class MasterCommands(NodeCommands, SyncCommands):
roles = []
if auth.try_validate(request, 'root'):
roles.append('root')
- return {'roles': roles}
+ return {'roles': roles, 'user': request.principal}
def _load_pubkey(pubkey):