vanilophp / framework

The truly Laravel E-commerce Framework
https://vanilo.io
MIT License
810 stars 102 forks source link

Cannot understand the purpose of a User Type #10

Closed thomasdom closed 6 years ago

thomasdom commented 6 years ago

screenshot-2018-3-21 editing thomas vanilo 1

I don't understand the benefits of adding a User type in User edit form if there are roles that can be assigned to users. Can you explain me your vision please ?

fulopattila122 commented 6 years ago

Yeah, good question. Maybe they could be removed completely.

The basic idea is that admin and client accounts should not be mixed together. The list of types can be extended so you may want to create "api" user type for example.

These types can be considered as "rough" distinction between various essential user types that have completely different scopes.

Roles and permissions are for fine tuned access management like "Product manager", "Order processing", "Campaign manager", etc.

User can only have one type but can have multiple roles assigned.