1 # frozen_string_literal: true
 
   4   class ProfileSectionsController < ApplicationController
 
   7     before_action :authorize_web
 
   8     before_action :set_locale
 
  10     authorize_resource :class => :profile
 
  12     before_action :check_database_readable
 
  13     before_action :check_database_writable, :only => [:update]
 
  19         flash[:notice] = t ".success"
 
  20         redirect_to user_path(current_user)
 
  22         flash.now[:error] = t ".failure"