emmett icon indicating copy to clipboard operation
emmett copied to clipboard

Feature request readable, writable fields

Open SvenKeimpema opened this issue 2 years ago • 1 comments

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

SvenKeimpema avatar Jun 30 '23 10:06 SvenKeimpema

Aka a user may only see the field when you have a certain permission

SvenKeimpema avatar Jun 30 '23 13:06 SvenKeimpema