emmett
emmett copied to clipboard
Feature request readable, writable fields
What i mean by this feature request is whenever i have created db and auth like:
db = Database(app)
auth = Auth(app, db, user_model=User)
i want to be able to do something like this:
db.AuthUser.password.writable = HasPermission(....)
db.AuthUser.password.readable = HasPermission(....)
I am not sure if you can do this already however i could not find it within the docs
Aka a user may only see the field when you have a certain permission