Added verification photo review to menu

This commit is contained in:
2025-12-23 16:52:42 -05:00
parent df3ba26221
commit c991069d30
2 changed files with 12 additions and 2 deletions
+2 -2
View File
@@ -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'