diff --git a/app/views/my_modules/_state_buttons.html.erb b/app/views/my_modules/_state_buttons.html.erb index 9d5ae8e8f..95d4dbfe8 100644 --- a/app/views/my_modules/_state_buttons.html.erb +++ b/app/views/my_modules/_state_buttons.html.erb @@ -1,14 +1,16 @@
-
- <% if !@my_module.completed? %> -
- <%= render 'my_modules/state_button_complete.html.erb' %> -
- <% else @my_module.completed? %> -
- <%= render 'my_modules/state_button_uncomplete.html.erb' %> -
- <% end %> -
+ <% if can_complete_module(@my_module) %> +
+ <% if !@my_module.completed? %> +
+ <%= render 'my_modules/state_button_complete.html.erb' %> +
+ <% else @my_module.completed? %> +
+ <%= render 'my_modules/state_button_uncomplete.html.erb' %> +
+ <% end %> +
+ <% end %>
\ No newline at end of file