thevahidal / soul

🕉 A SQLite REST and realtime server
https://thevahidal.github.io/soul/
MIT License
1.45k stars 49 forks source link

Accessing `_users` table with auth off #178

Open IanMayo opened 2 months ago

IanMayo commented 2 months ago

Describe the bug Note: this may actually be intended behaviour.

I tried to access the _users table (via /api/tables/_users/rows) in an instance of soul-cli with auth disabled. I got this error:

{"message":"You can not access this endpoint while AUTH is set to false"}

If the admin has decided to run soul-cli with auth disabled, shouldn't it be possible to see all data?

To Reproduce Steps to reproduce the behavior:

  1. Visit this end-point in a soul instance with a database that has been initialised for auth: /api/tables/_users/rows

Expected behavior View the contents of the _users table.

Screenshots If applicable, add screenshots to help explain your problem.