From 9e0e3ac5722fc90fc87fc7a46a1e1f1ef16ea85a Mon Sep 17 00:00:00 2001 From: Abhyuday Singh Date: Wed, 4 Dec 2024 13:28:26 +0530 Subject: [PATCH 1/2] minor change --- FusionIIIT/applications/examination/views.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/FusionIIIT/applications/examination/views.py b/FusionIIIT/applications/examination/views.py index d5f57bc7f..13bc37757 100644 --- a/FusionIIIT/applications/examination/views.py +++ b/FusionIIIT/applications/examination/views.py @@ -100,7 +100,6 @@ def exam(request): @login_required(login_url='/accounts/login') def submit(request): - unique_course_ids = course_registration.objects.values( 'course_id').distinct() @@ -303,6 +302,11 @@ def authenticategrades(request): # new @login_required(login_url='/accounts/login') def announcement(request): + des = request.session.get("currentDesignationSelected") + if des == "acadadmin" : + pass + else: + return HttpResponseRedirect('/dashboard/') """ This function is contains data for Requests and Announcement Related methods. Data is added to Announcement Table using this function. From 40e392070c8378eea373a69d539c536084a36ef0 Mon Sep 17 00:00:00 2001 From: Abhyuday Singh Date: Wed, 4 Dec 2024 13:49:56 +0530 Subject: [PATCH 2/2] minor change --- FusionIIIT/applications/examination/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FusionIIIT/applications/examination/views.py b/FusionIIIT/applications/examination/views.py index 13bc37757..28cd33091 100644 --- a/FusionIIIT/applications/examination/views.py +++ b/FusionIIIT/applications/examination/views.py @@ -100,6 +100,11 @@ def exam(request): @login_required(login_url='/accounts/login') def submit(request): + des = request.session.get("currentDesignationSelected") + if des == "acadadmin" or des=="Dean Academic" : + pass + else: + return HttpResponseRedirect('/dashboard/') unique_course_ids = course_registration.objects.values( 'course_id').distinct()