simonw/datasette-permissions-sql

"fallback": true option for supporting -1 = false

Closed this issue · 3 comments

Currently the plugin replies True on a match, Nome on no matches (allowing fallback to other plugins) and False only if -1 is returned by the query.

An option to return False on any row misses would be useful.

The main use-case for this is controlling access to default allow permissions - view-database etc.

Maybe this should be the default behavior? The -1 thing could be a special mode instead.

What would the syntax be for tuning on "fallback" mode?

 "fallback": true