# Path: app/models/role_entity.py
# ROLE_ADMIN = 'admin'
# 
# ROLE_TECHNICIAN = 'user'
# 
# Path: app/main.py



from flask import render_template
from flask_login import current_user
from flask_principal import Principal, Permission, RoleNeed
from app.models.role_entity import ROLE_ADMIN, ROLE_TECHNICIAN
from app.main import app
"""
Goal: Define the routes for the users

@authors:
  Andrei Sura             <sura.andrei@gmail.com>
  Ruchi Vivek Desai       <ruchivdesai@gmail.com>
  Sanath Pasumarthy       <sanath@ufl.edu>
"""

# from flask import request



# load the Principal extension
principals = Principal(app)

# define a permission
perm_admin = Permission(RoleNeed(ROLE_ADMIN))

# Path: app/models/role_entity.py
# ROLE_ADMIN = 'admin'
# 
# ROLE_TECHNICIAN = 'user'
# 
# Path: app/main.py



# Path: app/routes/users.py
from flask import render_template
from flask_login import current_user
from flask_principal import Principal, Permission, RoleNeed
from app.models.role_entity import ROLE_ADMIN, ROLE_TECHNICIAN
from app.main import app

"""
Goal: Define the routes for the users

@authors:
  Andrei Sura             <sura.andrei@gmail.com>
  Ruchi Vivek Desai       <ruchivdesai@gmail.com>
  Sanath Pasumarthy       <sanath@ufl.edu>
"""

# from flask import request



# load the Principal extension
principals = Principal(app)

# define a permission
perm_admin = Permission(RoleNeed(ROLE_ADMIN))

perm_technician = Permission(RoleNeed(ROLE_TECHNICIAN))