Skip to content

Commit 3b501e0

Browse files
committed
Update _CoursePartial.cshtml
1 parent e76c0d8 commit 3b501e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CourseNet/Views/Shared/_CoursePartial.cshtml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<p></p>
4242
}
4343

44-
@if (!Model.IsEnrolled)
44+
@if (!Model.IsEnrolled || User.IsAdmin())
4545
{
4646
@if (!isUserInstructor || User.IsAdmin())
4747
{
@@ -54,7 +54,7 @@
5454
}
5555
else
5656
{
57-
@if (!isUserInstructor && isCourseEnrolled)
57+
@if ((!isUserInstructor && isCourseEnrolled) || User.IsAdmin())
5858
{
5959
<form asp-area="" asp-controller="Courses" asp-action="Leave"
6060
asp-route-id="@Model.Id" method="post">

0 commit comments

Comments
 (0)