|
|
|
@ -3,8 +3,8 @@ class HackUserLastestCodesController < ApplicationController
|
|
|
|
|
before_action :find_my_hack, only: [:show, :code_debug, :code_submit, :update_code, :sync_code,
|
|
|
|
|
:listen_result, :result, :submit_records, :restore_initial_code]
|
|
|
|
|
before_action :update_user_hack_status, only: [:code_debug, :code_submit]
|
|
|
|
|
before_action :require_auth_identity, only: [:update_code, :restore_initial_code, :sync_code]
|
|
|
|
|
before_action :require_manager_identity, only: [:update_code]
|
|
|
|
|
#before_action :require_auth_identity, only: [:restore_initial_code, :sync_code]
|
|
|
|
|
before_action :require_manager_identity, only: [:show, :update_code, :restore_initial_code, :sync_code]
|
|
|
|
|
|
|
|
|
|
def show
|
|
|
|
|
@my_hack.update_attribute(:submit_status, 0) if @my_hack.submit_status == 1
|
|
|
|
|