* fixed Issue 101: DMSF setting tab is visible even if module is not active
git-svn-id: http://redmine-dmsf.googlecode.com/svn/trunk/redmine_dmsf@184 5e329b0b-a2ee-ea63-e329-299493fc886d
This commit is contained in:
parent
660e34766e
commit
d5411fe24d
@ -36,7 +36,9 @@ module ProjectTabsExtended
|
||||
|
||||
def project_settings_tabs_with_dmsf
|
||||
tabs = project_settings_tabs_without_dmsf
|
||||
tabs.push({:name => 'dmsf', :controller => :dmsf_state, :action => :user_pref_save, :partial => 'dmsf_state/user_pref', :label => :dmsf})
|
||||
unless @project.enabled_modules.index{|mod| mod.name == "dmsf"}.nil?
|
||||
tabs.push({:name => 'dmsf', :controller => :dmsf_state, :action => :user_pref_save, :partial => 'dmsf_state/user_pref', :label => :dmsf})
|
||||
end
|
||||
return tabs
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user