keygen-sh / keygen-api

Keygen is a fair source software licensing and distribution API built with Ruby on Rails. For developers, by developers.
https://keygen.sh
Other
701 stars 40 forks source link

Refactor pattern matching for role checks #738

Closed ezekg closed 1 year ago

ezekg commented 1 year ago

Cleans up role checks to use a typed Role(...) pattern and symbol role names.

ezekg commented 1 year ago

Missed: https://github.com/keygen-sh/keygen-api/blob/master/app/models/user.rb#L44