diff --git a/app/controllers/skills_controller.rb b/app/controllers/skills_controller.rb index cc77f56b6..b5e438235 100644 --- a/app/controllers/skills_controller.rb +++ b/app/controllers/skills_controller.rb @@ -6,6 +6,7 @@ class SkillsController < CrudController include ExportController include KeycloakTools + before_action :authorize_admin, except: %i[index show create unrated_by_person] self.permitted_attrs = %i[title radar portfolio default_set category_id] diff --git a/app/models/person.rb b/app/models/person.rb index 44755512d..db536eb9c 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -108,16 +108,5 @@ def from_omniauth(auth) person.company = Company.first end end - - def new_with_session(params, session) - require 'pry'; binding.pry # rubocop:disable Style/Semicolon,Lint/Debugger - super.tap do |user| - data = session['devise.facebook_data'] - session_info = session['devise.facebook_data']['extra']['raw_info'] - if data && session_info && user.email.blank? - user.email = data['email'] - end - end - end end end diff --git a/db/schema.rb b/db/schema.rb index 9acca065e..956bacfc0 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2024_02_26_110212) do +ActiveRecord::Schema[7.0].define(version: 2021_03_08_101205) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql"