Improve User Management with Enhanced Role Management
Opened this issue · 0 comments
deepaksuresh2411 commented
Description
This issue involves refactoring the user model and introducing utility functions to enhance user management capabilities.
Background
The current user model lacks efficient role management capabilities and utility functions for user-related operations. By enhancing the user model with utility functions and introducing a role management system, we aim to improve user management processes.
Feature Details
Utility Functions for User Model
- Implement utility methods such as is_user_active, add_roles, update_roles, remove_roles, has_role, activate_role, deactivate_role, and filter_users within the user model.
- These methods will provide essential functionalities for managing user accounts, roles, and status efficiently.
User-Role Mapping Model
- Introduce a separate Role Mapping model to facilitate role activation and deactivation for users.
- This gives flexibility and control in user-role management.