Only admins should disconnect DBs #4007
Labels
good first issue
Everything in "Help wanted", PLUS being relatively easy and straightforward to implement.
help wanted
Community contributors can implement this
ready
Ready for implementation
type: bug
Something isn't working
work: backend
Related to Python, Django, and simple SQL
Milestone
Description
Any user can make an RPC call to
databases.configured.disconnect
, meaning any user can disconnect any database.Expected behavior
The RPC function
databases.configured.disconnect
should only be available to Mathesar adminsAdditional context
The solution is to simply change the basic auth decorator on the relevant function.
The text was updated successfully, but these errors were encountered: