Hello everyone, I'm just looking for a architecture or dessign patterns to handle app based on roles or permissions.
For example, I have four different user types, and I want to handle some features enabled for two users and disababled by default.
I read something about feature toggle, but I'm not sure if is the best option, because I want to avoid if statements checks in the code.
Someone know something about this?
2 years ago
I want to avoid if statements checks in the code.
You can checkout strategy pattern for implementing feature flags.
Also read about dynamic feature modules if it fits your use-case.