diff --git a/app/views/boards/_course_new.html.erb b/app/views/boards/_course_new.html.erb
index 774d1c100..3ffc4f9b0 100644
--- a/app/views/boards/_course_new.html.erb
+++ b/app/views/boards/_course_new.html.erb
@@ -126,16 +126,14 @@
- <%if User.current.member_of_course?(course) %>
-
- <% if User.current.id == course.tea_id %>
- <%= f.check_box :sticky, :value => topic.sticky %>
- <%= label_tag 'message_sticky', l(:label_board_sticky) %>
- <%= f.check_box :locked, :value => topic.locked %>
- <%= label_tag 'message_locked', l(:label_board_locked) %>
- <% end %>
-
-
+ <%if User.current.allowed_to?(:as_teacher, course) %>
+
+ <%= f.check_box :sticky, :value => topic.sticky %>
+ <%= label_tag 'message_sticky', l(:label_board_sticky) %>
+ <%= f.check_box :locked, :value => topic.locked %>
+ <%= label_tag 'message_locked', l(:label_board_locked) %>
+
+
<% end %>
diff --git a/app/views/boards/_course_show.html.erb b/app/views/boards/_course_show.html.erb
index 2e401c19a..c41a8d254 100644
--- a/app/views/boards/_course_show.html.erb
+++ b/app/views/boards/_course_show.html.erb
@@ -6,8 +6,10 @@
function reset_topic(){
$("#message_subject").val("");
$("#subjectmsg").text("");
- document.getElementById("message_sticky").checked=false;
- document.getElementById("message_locked").checked=false;
+ if(document.getElementById("message_sticky") && document.getElementById("message_locked")){
+ document.getElementById("message_sticky").checked=false;
+ document.getElementById("message_locked").checked=false;
+ }
$("#topic_attachments").html("<%= escape_javascript(render :partial => 'attachments/form_course', :locals => {:container => Message.new, :isReply => @isReply})%>");
message_content_editor.html("");
$("#topic_editor").toggle();