server/querier.py
branchstable
changeset 6128 fbb8398f80dc
parent 5989 099d46422f5a
child 6129 fea746b60093
--- a/server/querier.py	Fri Aug 20 08:29:48 2010 +0200
+++ b/server/querier.py	Fri Aug 20 08:31:02 2010 +0200
@@ -422,7 +422,9 @@
         # raise Unautorized exception if the user can't access to any solution
         if not newsolutions:
             raise Unauthorized('\n'.join(msgs))
-        rqlst.set_possible_types(newsolutions)
+        if msgs:
+            # (else solutions have not been modified)
+            rqlst.set_possible_types(newsolutions)
         return localchecks, restricted_vars
 
     def finalize(self, select, solutions, insertedvars):