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'
+10
View File
@@ -73,6 +73,11 @@
<i class="fas fa-chart-line"></i>
<span class="menu-text">Reports</span>
</a>
<a href="{{ url_for('verification_review') }}"
class="menu-item {% if request.endpoint == 'verification_review' %}active{% endif %}">
<i class="fas fa-camera-retro"></i>
<span class="menu-text">Verification Review</span>
</a>
<a href="{{ url_for('time_attendance_dashboard') }}"
class="menu-item {% if request.endpoint and (request.endpoint.startswith('time_attendance') or request.endpoint.startswith('import_time_attendance')) %}active{% endif %}">
<i class="fas fa-clock"></i>
@@ -105,6 +110,11 @@
<i class="fas fa-chart-line"></i>
<span class="menu-text">Reports</span>
</a>
<a href="{{ url_for('verification_review') }}"
class="menu-item {% if request.endpoint == 'verification_review' %}active{% endif %}">
<i class="fas fa-camera-retro"></i>
<span class="menu-text">Verification Review</span>
</a>
<a href="{{ url_for('time_attendance_dashboard') }}"
class="menu-item {% if request.endpoint and (request.endpoint.startswith('time_attendance') or request.endpoint.startswith('import_time_attendance')) %}active{% endif %}">
<i class="fas fa-clock"></i>