myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [3720] branches/packs/app: changed access to 'vie


From: noreply
Subject: [myexperiment-hackers] [3720] branches/packs/app: changed access to 'view' to update the checklist
Date: Wed, 25 Sep 2013 15:40:44 +0000 (UTC)

Revision
3720
Author
dgc
Date
2013-09-25 15:40:44 +0000 (Wed, 25 Sep 2013)

Log Message

changed access to 'view' to update the checklist

Modified Paths

Diff

Modified: branches/packs/app/controllers/packs_controller.rb (3719 => 3720)


--- branches/packs/app/controllers/packs_controller.rb	2013-09-25 15:33:01 UTC (rev 3719)
+++ branches/packs/app/controllers/packs_controller.rb	2013-09-25 15:40:44 UTC (rev 3720)
@@ -526,7 +526,7 @@
       "tag"              => "view",
       "update"           => "edit",
       "update_item"      => "edit",
-      "update_checklist" => "edit",
+      "update_checklist" => "view",
       "snapshot"         => "edit"
     }
 

Modified: branches/packs/app/views/packs/_checklist.html.erb (3719 => 3720)


--- branches/packs/app/views/packs/_checklist.html.erb	2013-09-25 15:33:01 UTC (rev 3719)
+++ branches/packs/app/views/packs/_checklist.html.erb	2013-09-25 15:40:44 UTC (rev 3720)
@@ -4,7 +4,7 @@
 		Checklist evaluation
   </p>
 
-  <% if Authorization.check('edit', @pack, current_user) %>
+  <% if Authorization.check('view', @pack, current_user) %>
     <p>
       <% form_tag(update_checklist_pack_path(@pack), :method => :post) do -%>
         <%= select_tag("minim", options_for_select(Conf.research_object_checklists.keys )) -%>

reply via email to

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