[Logilogi-svn] SF.net SVN: logilogi: [328] trunk/app/controllers/logi_controller.rb
Status: Beta
Brought to you by:
wybow
|
From: <wy...@us...> - 2007-05-29 22:08:20
|
Revision: 328
http://logilogi.svn.sourceforge.net/logilogi/?rev=328&view=rev
Author: wybow
Date: 2007-05-29 15:08:18 -0700 (Tue, 29 May 2007)
Log Message:
-----------
Fixed a bug that caused nil.method errors when saving new logi's.
Modified Paths:
--------------
trunk/app/controllers/logi_controller.rb
Modified: trunk/app/controllers/logi_controller.rb
===================================================================
--- trunk/app/controllers/logi_controller.rb 2007-05-28 00:07:20 UTC (rev 327)
+++ trunk/app/controllers/logi_controller.rb 2007-05-29 22:08:18 UTC (rev 328)
@@ -83,7 +83,8 @@
@additional_tabs_body = ''
else
actions = [['View',{:action => :show}]]
- if Context.current.link.volatile_to_logi.edit_rights?(User.current)
+ if Context.current.link.volatile_to_logi and
+ Context.current.link.volatile_to_logi.edit_rights?(User.current)
actions << ['Edit',{:action => :edit}]
end
actions.concat [['New',{:action => :new, :step => -1}],
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|