### Environment - Platform version: 7.2.7 ### Description of the bug or enhancement 1. Create a new project 2. Create a new entity with several attributes (for example, String and Integer types) 3. Create browser and editor screens for the entity 4. Add Reports add-on 5. Run the project 6. Add several different entity items 7. Create a new user with `system-full-access` role 8. Open Administration ->Access groups 9. Create a new access group 10. Start to create a new constraints 11. Select `Check in database and in memory` check type 12. Enter one of the attributes in the Where Clause field 13. Enter the same attributes as in the previous step in the Groovy Script field for example, constraint looks like  14. Start to create Reports 15. Select the entity created in the previous step and any `Template type` 16. Select `Report for list of entities, selected by query` report type and set empty query and click next 17. Select the entity attributes created in the previous step and click Next 18. Run the report  AR: All data was shown without applying constraint