server/querier.py
branchstable
changeset 8333 baa3ea5eac2b
parent 8238 087bb529035c
child 8342 7a5271182ef0
--- a/server/querier.py	Mon Mar 26 12:13:40 2012 +0200
+++ b/server/querier.py	Wed Mar 21 18:33:12 2012 +0100
@@ -417,7 +417,7 @@
                         if rqlexpr.check(session, eid):
                             break
                     else:
-                        raise Unauthorized()
+                        raise Unauthorized('No read acces on %r with eid %i.' % (var, eid))
                 restricted_vars.update(localcheck)
                 localchecks.setdefault(tuple(localcheck.iteritems()), []).append(solution)
         # raise Unautorized exception if the user can't access to any solution