myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2052] branches/authorization_new/lib/authorizati


From: noreply
Subject: [myexperiment-hackers] [2052] branches/authorization_new/lib/authorization.rb: Auth module.
Date: Fri, 16 Jan 2009 06:06:54 -0500 (EST)

Revision
2052
Author
alekses6
Date
2009-01-16 06:06:53 -0500 (Fri, 16 Jan 2009)

Log Message

Auth module. Added new action category - 'execute'; 'edit' action moved towards the beginning of the list, as it's probably the most frequent action in that category.

Modified Paths

Diff

Modified: branches/authorization_new/lib/authorization.rb (2051 => 2052)


--- branches/authorization_new/lib/authorization.rb	2009-01-15 19:09:27 UTC (rev 2051)
+++ branches/authorization_new/lib/authorization.rb	2009-01-16 11:06:53 UTC (rev 2052)
@@ -210,12 +210,16 @@
     case action_name
       when 'show', 'index', 'view', 'search', 'favourite', 'favourite_delete', 'comment', 'comment_delete', 'comments', 'comments_timeline', 'rate', 'tag',  'items', 'statistics', 'tag_suggestions'
         action = ''
-      when 'new', 'create', 'update', 'edit', 'new_version', 'create_version', 'destroy_version', 'edit_version', 'update_version', 'new_item', 'create_item', 'edit_item', 'update_item', 'quick_add', 'resolve_link'
+      when 'edit', 'new', 'create', 'update', 'new_version', 'create_version', 'destroy_version', 'edit_version', 'update_version', 'new_item', 'create_item', 'edit_item', 'update_item', 'quick_add', 'resolve_link'
         action = ''
       when 'download', 'named_download', 'launch', 'submit_job'
         action = ''
       when 'destroy', 'destroy_item'
         action = ''
+      when 'execute'
+        # action is available only(?) for runners at the moment;
+        # possibly, "launch" action for workflows should be moved into this category, too
+        action = ''
       else
         # unknown action
         action = ""

reply via email to

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