holgi / fastapi-permissions

row level security for FastAPI framework
Other
475 stars 47 forks source link

Convert non iterable permissions to set, rather than just strings #14

Closed mcleantom closed 2 years ago

mcleantom commented 2 years ago

On my system I want to use an enum for permissions:

class Permissions(Enum):
    create = "CREATE"
    read = "READ"
    update = "UPDATE"
    delete = "DELETE

However, the permissions doesnt get converted to a set on line 181.