check feature flags via utils function
Created by: ri-pandey
Description
Use a common utils function to check if features are enabled. Also check if features are enabled, disabled, or only enabled for certain roles (current code only determines enabled/disabled status by true/false booleans, and does not take into consideration the fact that the feature could only be enabled for certain roles.
Changes Made
List the main changes made in this PR. Be as specific as possible.
-
Code refactored
Checklist
Before submitting this PR, please make sure that:
-
Your code passes linting and coding style checks. -
You have reviewed your own code and resolved any merge conflicts. -
You have requested a review from at least one team member.