Sha256: 1f53d2a7202800be9292782d096d29368a3ed426621443f435de77b84d707e8a

Contents?: true

Size: 395 Bytes

Versions: 26

Compression:

Stored size: 395 Bytes

Contents

module Api
  class UsersController < BaseController
    include UsersControllerTemplate
    before_action :authorize_janitor!

    def create
      @user.save!
      @user.notify!
      render json: @user.as_platform_json
    end

    def update
      @user.update! user_params.except([:email, :permissions, :uid])
      @user.notify!
      render json: @user.as_platform_json
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
mumuki-laboratory-5.13.0 app/controllers/api/users_controller.rb
mumuki-laboratory-5.12.1 app/controllers/api/users_controller.rb
mumuki-laboratory-5.12.0 app/controllers/api/users_controller.rb
mumuki-laboratory-5.11.0 app/controllers/api/users_controller.rb
mumuki-laboratory-5.10.4 app/controllers/api/users_controller.rb
mumuki-laboratory-5.10.3 app/controllers/api/users_controller.rb
mumuki-laboratory-5.10.2 app/controllers/api/users_controller.rb
mumuki-laboratory-5.10.1 app/controllers/api/users_controller.rb
mumuki-laboratory-5.10.0 app/controllers/api/users_controller.rb
mumuki-laboratory-5.9.1 app/controllers/api/users_controller.rb
mumuki-laboratory-5.9.0 app/controllers/api/users_controller.rb
mumuki-laboratory-5.8.3 app/controllers/api/users_controller.rb
mumuki-laboratory-5.8.1 app/controllers/api/users_controller.rb
mumuki-laboratory-5.8.0 app/controllers/api/users_controller.rb
mumuki-laboratory-5.7.0 app/controllers/api/users_controller.rb
mumuki-laboratory-5.6.3 app/controllers/api/users_controller.rb
mumuki-laboratory-5.6.2 app/controllers/api/users_controller.rb
mumuki-laboratory-5.6.1 app/controllers/api/users_controller.rb
mumuki-laboratory-5.6.0 app/controllers/api/users_controller.rb
mumuki-laboratory-5.5.0 app/controllers/api/users_controller.rb