|
|
@ -5,6 +5,7 @@ class HackUserLastestCodesController < ApplicationController
|
|
|
|
before_action :update_user_hack_status, only: [:code_debug, :code_submit]
|
|
|
|
before_action :update_user_hack_status, only: [:code_debug, :code_submit]
|
|
|
|
before_action :require_auth_identity, only: [:add_notes]
|
|
|
|
before_action :require_auth_identity, only: [:add_notes]
|
|
|
|
before_action :require_manager_identity, only: [:show, :update_code, :restore_initial_code, :sync_code]
|
|
|
|
before_action :require_manager_identity, only: [:show, :update_code, :restore_initial_code, :sync_code]
|
|
|
|
|
|
|
|
skip_before_action :check_sign, only: [:listen_result]
|
|
|
|
|
|
|
|
|
|
|
|
def show
|
|
|
|
def show
|
|
|
|
@my_hack.update_attribute(:submit_status, 0) if @my_hack.submit_status == 1
|
|
|
|
@my_hack.update_attribute(:submit_status, 0) if @my_hack.submit_status == 1
|
|
|
|