myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3239] branches/wf4ever/app/controllers/workflows


From: noreply
Subject: [myexperiment-hackers] [3239] branches/wf4ever/app/controllers/workflows_controller.rb: Reformed Not Accessible-error for workflow
Date: Thu, 6 Dec 2012 14:02:04 +0000 (UTC)

Revision
3239
Author
stain
Date
2012-12-06 14:02:04 +0000 (Thu, 06 Dec 2012)

Log Message

Reformed Not Accessible-error for workflow

Modified Paths

Diff

Modified: branches/wf4ever/app/controllers/workflows_controller.rb (3238 => 3239)


--- branches/wf4ever/app/controllers/workflows_controller.rb	2012-12-06 14:01:34 UTC (rev 3238)
+++ branches/wf4ever/app/controllers/workflows_controller.rb	2012-12-06 14:02:04 UTC (rev 3239)
@@ -881,7 +881,8 @@
         logger.debug("@viewing_version_number = address@hidden")
         logger.debug("@workflow.image != nil = address@hidden != nil}")
       else
-        error("Workflow not found (id not authorized)", "is invalid (not authorized)", nil, 401)
+        error("Workflow #{params[:id]} not accessible, you are not authorized", 
+              "not accessible (not authorized)", :id, 401)
         return false
       end
     rescue ActiveRecord::RecordNotFound

reply via email to

[Prev in Thread] Current Thread [Next in Thread]