Role Management

Control user access and permissions for SmartFarm features

Current User Status

Role: Loading...

Email: Loading...

Is Owner: Loading...

Permissions:

Role Controls

Use these controls to test different user roles (development only)

Role Definitions

Owner

Full access to all features

  • All debugging tools
  • Analytics dashboard
  • Admin features
  • Crop management
  • Livestock management
  • User management
  • System settings
Admin

Administrative access

  • Debugging tools
  • Analytics dashboard
  • Admin features
  • Crop management
  • Livestock management
  • User management
  • System settings
User

Standard user access

  • Debugging tools
  • Analytics dashboard
  • Admin features
  • Crop management
  • Livestock management
  • Basic features
  • System settings
Guest

Limited access

  • Debugging tools
  • Analytics dashboard
  • Admin features
  • Basic features
  • View only

Feature Access Matrix

Feature Owner Admin User Guest
Button Debugger
Ads Testing
Ads Analytics
Admin Panel
Crop Management
Livestock Management
View Dashboard

Owner Configuration

Configure who has owner access to SmartFarm

Owner Email Addresses
Current Owner Emails:
  • warusi2023@gmail.com
  • admin@smartfarm-app.com
  • owner@smartfarm-app.com
Development Access
Development Mode:
Owner mode can be enabled for development/testing purposes using the controls above.

Security Notes

Important Security Information
  • Owner Access: Only you (the project owner) should have owner-level access
  • Email Verification: Owner status is determined by email address
  • Development Mode: Owner mode can be enabled for testing but should be disabled in production
  • Role Persistence: User roles are stored in localStorage and persist across sessions
  • Feature Protection: Debugging and testing tools are hidden from regular users