KSchopmeyer / smipyping

A set of tools for viewing status of SMIs servers
http://smipyping.readthedocs.io/en/latest/
MIT License
1 stars 0 forks source link

Validate code for db with read-only-user #68

Open KSchopmeyer opened 5 years ago

KSchopmeyer commented 5 years ago

We agreed that the way to have both readonly and read-write database access was to create multiple users. Most people would know a user that was read-only so that they could not modify the db. That simply means creating multiple users in the db with varying access. The only support for that in smipyping is in the documentation.

However, we want to be sure we have a clean exception when a read-only user tries to write to the db. We need to extend the exceptions to cover this particular issue and return the proper response.