Reduce log level when role cannot report or export and hide Report button when role cannot report
Description
Hi,
ATM, when MRole.isCanReport/isCanExport is called and access is not allowed, logs only says “Role denied”, but is not possible to know which role/table is concerned
Environment
None
Activity
Show:
Nicolas Micoud May 2, 2023 at 8:49 AM
Hi Carlos,
I was searching a solution using Context, and don’t think about using code Thanks !
Carlos Ruiz April 30, 2023 at 10:36 AM
Yep, that sounds useful ; but no idea how to do that ; I found nothing in context to help :-/
I added a suggested patch to the pull request
Nicolas Micoud April 28, 2023 at 2:11 PM
Yep, that sounds useful ; but no idea how to do that ; I found nothing in context to help :-/ In my case, I got lots of MRole.isCanReport: Role denied and I suspect the root cause is when trying to enable Drill
Carlos Ruiz April 28, 2023 at 1:46 PM
Hi - talking about that - I think the report button on the toolbar would be better hidden for a role that cannot report. At this moment the button is shown just to tell the user that he cannot issue reports.
Hi,
ATM, when MRole.isCanReport/isCanExport is called and access is not allowed, logs only says “Role denied”, but is not possible to know which role/table is concerned