- <%if User.current.member_of_course?(course)%>
+ <%if User.current.member_of_course?(course) %>
- <%= f.check_box :sticky, :value => topic.sticky%>
- <%= label_tag 'message_sticky', l(:label_board_sticky) %>
- <%= f.check_box :locked, :value => topic.locked%>
+ <% if User.current.admin? %>
+ <%= f.check_box :sticky, :value => topic.sticky %>
+ <%= label_tag 'message_sticky', l(:label_board_sticky) %>
+ <% end %>
+ <%= f.check_box :locked, :value => topic.locked %>
<%= label_tag 'message_locked', l(:label_board_locked) %>