Incorrect user rights check when using custom widgets

I have the document in Grist with default table permissions = deny all:

I have one table with special permissions (allow everything for everybody):

I can see the table contents:

But when I try to use any custom widget with this table, it is empty. Calendar as an example:

If I remove the default “deny all” permissions, the widgets start working properly.

Document example: https://docs.getgrist.com/vDeyzj2P9P5C/Test-calendar-bug?utm_id=share-doc