Added verification photo review to menu
This commit is contained in:
@@ -5320,7 +5320,7 @@ def verification_review():
|
|||||||
"""Admin page to review pending photo verifications"""
|
"""Admin page to review pending photo verifications"""
|
||||||
try:
|
try:
|
||||||
# Only admins can access
|
# Only admins can access
|
||||||
if session.get('role') != 'admin':
|
if session.get('role') not in ['admin', 'payroll']:
|
||||||
flash('Unauthorized access.', 'error')
|
flash('Unauthorized access.', 'error')
|
||||||
return redirect(url_for('dashboard'))
|
return redirect(url_for('dashboard'))
|
||||||
|
|
||||||
@@ -5382,7 +5382,7 @@ def update_verification_status(record_id):
|
|||||||
"""Update verification status (approve/reject)"""
|
"""Update verification status (approve/reject)"""
|
||||||
try:
|
try:
|
||||||
# Only admins can update
|
# Only admins can update
|
||||||
if session.get('role') != 'admin':
|
if session.get('role') not in ['admin', 'payroll']:
|
||||||
return jsonify({
|
return jsonify({
|
||||||
'success': False,
|
'success': False,
|
||||||
'message': 'Unauthorized access'
|
'message': 'Unauthorized access'
|
||||||
|
|||||||
@@ -73,6 +73,11 @@
|
|||||||
<i class="fas fa-chart-line"></i>
|
<i class="fas fa-chart-line"></i>
|
||||||
<span class="menu-text">Reports</span>
|
<span class="menu-text">Reports</span>
|
||||||
</a>
|
</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') }}"
|
<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 %}">
|
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>
|
<i class="fas fa-clock"></i>
|
||||||
@@ -105,6 +110,11 @@
|
|||||||
<i class="fas fa-chart-line"></i>
|
<i class="fas fa-chart-line"></i>
|
||||||
<span class="menu-text">Reports</span>
|
<span class="menu-text">Reports</span>
|
||||||
</a>
|
</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') }}"
|
<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 %}">
|
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>
|
<i class="fas fa-clock"></i>
|
||||||
|
|||||||
Reference in New Issue
Block a user