level12 / keg-auth

Robust authentication system for Keg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should permissions be an enum rather than a database table?

rsyring opened this issue · comments

Just something I thought about today.

See #72, it's a good idea, we just haven't done it yet.

The advantage of the current scheme is ease of creating new permissions in the database. Since keg-auth does have some enforcement of a set of permissions on the python side, we don't lose much in terms of data integrity. An enum would be a purer data model, though.