concrete5/concrete5 — pull request #892 by ahukkanen (2013-02-04 12:38:51+00:00)
Title: Permissions fix when the query does not return anything.

Ran into a strange issue when playing out with permissions. The page had area-specific exclude permissions after which I set exclude permissions to that page as well. After this the page threw an exception and did not let me in.

This seemed to happen because the query on top of the changes made returned false. I don't know exactly what caused this issue.