Skip to content

Commit

Permalink
Merge pull request #1576 from FusionIIIT/ac-3-final
Browse files Browse the repository at this point in the history
AC-3 minor bug fix to latest_staging
  • Loading branch information
prabhatsuman authored Apr 25, 2024
2 parents 1f9fb72 + bf0d1e3 commit 88e664d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FusionIIIT/applications/online_cms/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1734,7 +1734,7 @@ def add_academic_calendar(request):
user = request.user
extrainfo = ExtraInfo.objects.select_related().get(user=user)

if extrainfo.id == 'id_admin':
if request.session.get('currentDesignationSelected') == 'acadadmin':
calendar = Calendar.objects.all()
context= {
'academic_calendar' :calendar,
Expand Down Expand Up @@ -1786,7 +1786,7 @@ def update_calendar(request):
user = request.user
extrainfo = ExtraInfo.objects.select_related().get(user=user)

if extrainfo.id == 'id_admin':
if request.session.get('currentDesignationSelected') == 'acadadmin':
calendar = Calendar.objects.all()
context= {
'academic_calendar' :calendar,
Expand Down Expand Up @@ -1831,7 +1831,7 @@ def add_timetable(request):
user = request.user
extrainfo = ExtraInfo.objects.select_related().get(user=user)

if extrainfo.id == 'id_admin':
if request.session.get('currentDesignationSelected') == 'acadadmin':
if request.method == 'POST':
try:
timetable = request.FILES.get('img')
Expand Down Expand Up @@ -1879,7 +1879,7 @@ def delete_timetable(request):
extrainfo = ExtraInfo.objects.select_related().get(user=user)


if extrainfo.id == 'id_admin':
if request.session.get('currentDesignationSelected') == 'acadadmin':
if request.method == "POST":
pk = request.POST.get('pk')
t = Timetable.objects.get(pk=pk)
Expand Down

0 comments on commit 88e664d

Please sign in to comment.