Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/node/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar_network/node/commands.py')
-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 1df1a13..36889dc 100644
--- a/sugar_network/node/commands.py
+++ b/sugar_network/node/commands.py
@@ -91,7 +91,7 @@ class NodeCommands(ad.VolumeCommands, Commands):
return
if cmd.permissions & ad.ACCESS_AUTH:
- enforce(request.principal is not None, router.Unauthorized,
+ enforce(auth.try_validate(request, 'user'), router.Unauthorized,
'User is not authenticated')
if cmd.permissions & ad.ACCESS_AUTHOR and 'guid' in request: