Skip to content

Commit

Permalink
nsbox: disable auth sources
Browse files Browse the repository at this point in the history
  • Loading branch information
xjia1 authored and Joshua1023 committed Jun 21, 2024
1 parent f7a5ec8 commit 14a44cb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions app/controllers/auth_sources_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def index
end

def new
raise "Auth sources are disabled"
end

def create
Expand All @@ -44,6 +45,7 @@ def create
end

def edit
raise "Auth sources are disabled"
end

def update
Expand Down
1 change: 0 additions & 1 deletion app/views/auth_sources/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<div class="contextual">
<%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %>
</div>

<%= title l(:label_auth_source_plural) %>
Expand Down
3 changes: 0 additions & 3 deletions lib/redmine/preparation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,6 @@ def self.prepare
:html => {:class => 'icon icon-list'}
menu.push :settings, {:controller => 'settings'},
:html => {:class => 'icon icon-settings'}
menu.push :ldap_authentication,
{:controller => 'auth_sources', :action => 'index'},
:html => {:class => 'icon icon-server-authentication'}
menu.push :plugins, {:controller => 'admin', :action => 'plugins'},
:last => true,
:html => {:class => 'icon icon-plugins'}
Expand Down

0 comments on commit 14a44cb

Please sign in to comment.