diff --git a/app.py b/app.py index c936c75..d10c286 100644 --- a/app.py +++ b/app.py @@ -5320,7 +5320,7 @@ def verification_review(): """Admin page to review pending photo verifications""" try: # Only admins can access - if session.get('role') != 'admin': + if session.get('role') not in ['admin', 'payroll']: flash('Unauthorized access.', 'error') return redirect(url_for('dashboard')) @@ -5382,7 +5382,7 @@ def update_verification_status(record_id): """Update verification status (approve/reject)""" try: # Only admins can update - if session.get('role') != 'admin': + if session.get('role') not in ['admin', 'payroll']: return jsonify({ 'success': False, 'message': 'Unauthorized access' diff --git a/templates/base_authenticated.html b/templates/base_authenticated.html index c69a031..c890b42 100644 --- a/templates/base_authenticated.html +++ b/templates/base_authenticated.html @@ -73,6 +73,11 @@ Reports + + + Verification Review + @@ -105,6 +110,11 @@ Reports + + + Verification Review +