JonasStjerne / IoT

Full Stack Solution for making everyday appliances smart
0 stars 1 forks source link

Superuser & auth #13

Open JonasStjerne opened 1 year ago

JonasStjerne commented 1 year ago

There should be a super user type. There should be an auth guard to check for this user type and it should be applied to create and delete for hubs.

Use enum for role type with numbers and edit the normal auth to check if auth level is equal to or higher than the normal user type