Created operator reference when new job is created
This commit is contained in:
@@ -21,6 +21,8 @@ class Operator::JobsController < ApplicationController
|
||||
def create
|
||||
@job = Job.new(job_params)
|
||||
@job.created_by_operator = true
|
||||
# TODO: rename costumer to creater? When created by operator the operator is referenced instead of costumer.
|
||||
@job.costumer = current_user
|
||||
|
||||
respond_to do |format|
|
||||
if @job.save
|
||||
|
||||
Reference in New Issue
Block a user