Commit 4e06051ec734ab606bf42b193be05dcaec422f7d
1 parent
b6628c9d
Exists in
master
and in
5 other branches
delet course only professor or system admin
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
courses/views.py
@@ -279,7 +279,7 @@ class DeleteCourseView(LoginRequiredMixin, HasRoleMixin, LogMixin, generic.Delet | @@ -279,7 +279,7 @@ class DeleteCourseView(LoginRequiredMixin, HasRoleMixin, LogMixin, generic.Delet | ||
279 | log_resource = "course" | 279 | log_resource = "course" |
280 | log_context = {} | 280 | log_context = {} |
281 | 281 | ||
282 | - allowed_roles = ['professor', 'student'] | 282 | + allowed_roles = ['professor', 'system_admin'] |
283 | login_url = reverse_lazy("core:home") | 283 | login_url = reverse_lazy("core:home") |
284 | redirect_field_name = 'next' | 284 | redirect_field_name = 'next' |
285 | model = Course | 285 | model = Course |