Skip to content

Commit

Permalink
Removed registration link
Browse files Browse the repository at this point in the history
  • Loading branch information
dolsysmith committed Mar 7, 2024
1 parent 51e775a commit 8d37c73
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class User < ApplicationRecord
include Blacklight::User
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
devise :database_authenticatable, #:registerable,
:recoverable, :rememberable, :trackable, :validatable,
:omniauthable, omniauth_providers: [:saml]

Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
mount Hydra::RoleManagement::Engine => '/'

mount Qa::Engine => '/authorities'
mount Hyrax::Engine, at: '/'#, constraints: DashboardAdminOnlyConstraint.new
mount Hyrax::Engine, at: '/'
resources :welcome, only: 'index'
root 'hyrax/homepage#index'
curation_concerns_basic_routes
Expand Down
7 changes: 7 additions & 0 deletions lib/tasks/update_users_sso.rake
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,15 @@ namespace :gwss do
if gw_email.match(user.email)
user.uid = user.email
user.provider = "saml"
puts "Updating user #{user.email}"
user.save
else
if (!user.admin?) & (!user.contentadmin?)
puts "Deleting user #{user.email}"
user.destroy
end
end

end
end
end

0 comments on commit 8d37c73

Please sign in to comment.