summaryrefslogtreecommitdiff
path: root/help/app
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2012-11-14 14:27:15 -0800
committerjessib <jessib@riseup.net>2012-11-14 14:27:15 -0800
commitdb758bcc770cf4e58937108fe18eefc447d09b42 (patch)
tree4c35db94fa671b9c667f01514dac9801129b3698 /help/app
parente0bfe1981be07f2ab27131c52a20b15e6562822d (diff)
Improvements to functional ticket tests.
Diffstat (limited to 'help/app')
-rw-r--r--help/app/controllers/tickets_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/help/app/controllers/tickets_controller.rb b/help/app/controllers/tickets_controller.rb
index 102464a..2dc4c4c 100644
--- a/help/app/controllers/tickets_controller.rb
+++ b/help/app/controllers/tickets_controller.rb
@@ -12,7 +12,7 @@ class TicketsController < ApplicationController
def create
@ticket = Ticket.new(params[:ticket])
- if current_user
+ if logged_in?
@ticket.created_by = current_user.id
@ticket.email = current_user.email if current_user.email
@ticket.comments.last.posted_by = current_user.id
@@ -48,7 +48,7 @@ class TicketsController < ApplicationController
def update
@ticket = Ticket.find(params[:id])
-
+
if !ticket_access_denied?
if status = params[:change_status] #close or open button was pressed
@ticket.close if params[:change_status] == 'close'