myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2060] branches/authorization_new/app/helpers/app


From: noreply
Subject: [myexperiment-hackers] [2060] branches/authorization_new/app/helpers/application_helper.rb: Auth.
Date: Fri, 16 Jan 2009 10:59:49 -0500 (EST)

Revision
2060
Author
alekses6
Date
2009-01-16 10:59:48 -0500 (Fri, 16 Jan 2009)

Log Message

Auth. Bug-fix for one of the previous commits (switch to the new auth module call had to be followed by removing legacy code).

Modified Paths

Diff

Modified: branches/authorization_new/app/helpers/application_helper.rb (2059 => 2060)


--- branches/authorization_new/app/helpers/application_helper.rb	2009-01-16 15:52:02 UTC (rev 2059)
+++ branches/authorization_new/app/helpers/application_helper.rb	2009-01-16 15:59:48 UTC (rev 2060)
@@ -1050,7 +1050,6 @@
   end
   
   def thing_authorized?(action, thing)
-    return true unless thing.respond_to?(:authorized?)
     return Authorization.is_authorized?(action, nil, thing, current_user)
   end
   

reply via email to

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