Commit c43268737eb6b598a1859c8fa669d26172b0a00e
1 parent
6b5acf4e
Exists in
master
and in
5 other branches
Now stundents can see links [Issue:#452]
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
links/views.py
@@ -226,7 +226,7 @@ class ViewLink(LoginRequiredMixin, HasRoleMixin, LogMixin, generic.DetailView): | @@ -226,7 +226,7 @@ class ViewLink(LoginRequiredMixin, HasRoleMixin, LogMixin, generic.DetailView): | ||
226 | log_action = 'viewed' | 226 | log_action = 'viewed' |
227 | log_context = {} | 227 | log_context = {} |
228 | 228 | ||
229 | - allowed_roles = ['professor', 'system_admin'] | 229 | + allowed_roles = ['professor', 'system_admin','student'] |
230 | template_name = 'links/view_link.html' | 230 | template_name = 'links/view_link.html' |
231 | success_url = reverse_lazy('course:links:render_link') | 231 | success_url = reverse_lazy('course:links:render_link') |
232 | context_object_name = 'link' | 232 | context_object_name = 'link' |