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/osem/app/controllers/admin
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Admin
  class OrganizationsController < Admin::BaseController
    load_and_authorize_resource :organization
    before_action :verify_user, on
    
    def assign_org_admins
      if @user.has_cached_role? 'organization_admin', @organization
        flash[:error] = "User #{@user.email} already has the role organization admin"
      elsif @user.add_role 'organization_admin', @organization
        flash[:notice] = "Successfully added role organization admin to user #{@user.email}"
      else
        flash[:error] = "Coud not add role organization admin to #{@user.email}"
      end