Skip to content

Commit

Permalink
Merge pull request #1668 from Lone24wolf/ac-7-examination
Browse files Browse the repository at this point in the history
Ac 7 examination
  • Loading branch information
dvjsharma authored Dec 4, 2024
2 parents 5892211 + 40e3920 commit 998cf49
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion FusionIIIT/applications/examination/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +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()

Expand Down Expand Up @@ -303,6 +307,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.
Expand Down

0 comments on commit 998cf49

Please sign in to comment.