def check_authorization
        unless current_user
          render nothing: true, status: :unauthorized
          return false
        end
        if params[:organization_id] && !parent_organization
          render nothing: true, status: :forbidden
          return false
        end
        true
      end
def check_authorization
        unless current_user
          render nothing: true, status: :unauthorized
          return false
        end
        if params[:organization_id] && !parent_organization
          render nothing: true, status: :forbidden
          return false
        end
        true
      end
def check_authorization unless current_user render nothing : true , status : :unauthorized return false end if params [ :organization_id ] && ! parent_organization render nothing : true , status : :forbidden return false end true end
Check current user is logged in
 Check organization is valid if specified
Check current user is logged in Check organization is valid if specified