parent
							
								
									4b738e074b
								
							
						
					
					
						commit
						baf628d7bc
					
				| @ -0,0 +1,20 @@ | ||||
| class Weapps::CourseStickiesController < Weapps::BaseController | ||||
|   before_action :require_wechat_login! | ||||
|   before_action :teacher_allowed | ||||
| 
 | ||||
|   def create | ||||
|     if current_course.sticky | ||||
| 
 | ||||
|     end | ||||
|   end | ||||
| 
 | ||||
|   def destroy | ||||
| 
 | ||||
|   end | ||||
| 
 | ||||
|   private | ||||
| 
 | ||||
|   def current_course | ||||
|     @_current_course = Course.find params[:course_id] | ||||
|   end | ||||
| end | ||||
					Loading…
					
					
				
		Reference in new issue