Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put the toggle feature behind the dev feature flag (#2161)
* Revoke roles temporarily based on revoked_roles * Extended validator PATCH \users\self * UpdateUser Set revoked_roles in user object minor changes: - fix typo in middlewares/validator to allow only member and super_user role * Test coverage for the changes * Modify Response * Changes Property name from revoked_roles to disabled_roles * refactored controller/users.js * [refactor] controller logic & test/unit/model * [fix] updateSelf developers can only updated disabled role property udpateSelf funciton update data of those people people who are either new or not in discord, in order case the user of the feature are those who are in the discord as well as have their userDetailsCompelete, Before, users who lied in this category couldn't update their user profile for that they need profile service if someone falls in this category, he can only update the disabled_roles property, for other properties such people need to use profile services * [chore-#2132] Add Test Case & refactor users model * [refactor] remove redundent reassignment * added dev flag and fallback if discord response isn't as expected * fix lint error --------- Co-authored-by: Amit Prakash <[email protected]> Co-authored-by: Achintya Chatterjee <[email protected]>
- Loading branch information