Migrate Owner/Renter Roles to User-Based Property Access Workflow
Changes Included
- Refactored user registration flow
- Removed Owner/Renter selection during registration
- Added role-based user management
- Added propertyAccess field to control property posting permissions
- Added requestStatus field for access approval workflow
- Updated login and authentication logic
- Updated admin user management functionality
- Added admin middleware
- Updated owner and renter dashboards
- Updated frontend and backend routes/controllers
Purpose
All users can register and browse properties. Only users approved by the admin can post, edit, or manage properties.
Testing
- Admin login tested
- User registration tested
- User login tested
- Property access workflow implementation completed