app/controllers/omniauth_sessions_controller.rb
# Give the user a "uvic" site role. Blacklight Access
# Controls needs this to allow access to works with
# "institution" visibility.

Give the user a "uvic" site role. Blacklight Access
Controls needs this to allow access to works with
"institution" visibility.
Give the user a " uvic " site role . Blacklight Access Controls needs this to allow access to works with " institution " visibility .
def update_permissions(user)
    unless ["admin","cataloguer","uvic"].any? { |role| user.site_roles.map(&:name).include?(role) }
      user.site_roles = user.site_roles + ["uvic"]
      user.save!
    end
  end
def update_permissions ( user ) unless [ "admin" , "cataloguer" , "uvic" ] . any? { | role | user . site_roles . map ( & :name ) . include? ( role ) } user . site_roles = user . site_roles + [ "uvic" ] user . save! end end
Give the user a "uvic" site role.
Give the user a " uvic " site role .
# If a user is an admin, cataloguer, or already has
 # a uvic role, this isn't necessary

user
<not_specific>