cuba-platform / reports

CUBA Reports Addon
https://www.cuba-platform.com/
Apache License 2.0
9 stars 4 forks source link

Support access constraint for the "Report for list of entities, selected by query" report type with empty query #264

Open MikhailSilk opened 4 years ago

MikhailSilk commented 4 years ago

Environment

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

kechkibet commented 3 years ago

Hi, Any update on this?