You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: organizations_controller.rb
    path of file: ./repos/postal/app/controllers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class OrganizationsController < ApplicationController

  before_action :admin_required, only: [:new, :create, :delete, :destroy]

  def index
    if c
    
  def update
    @organization_obj = current_user.organizations_scope.find(organization.id)
    if @organization_obj.update(params.require(:organization).permit(:name, :time_zone))
      redirect_to_with_json organization_settings_path(@organization_obj), notice: "Settings for #{@organization_obj.name} have been saved successfully."
    else
      render_form_errors "edit", @organization_obj
    end