Browse Source

Merge branch 'develop' into standalone_develop

pull/313/head
yystopf 4 years ago
parent
commit
6dc2f0b062
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/controllers/owners_controller.rb

+ 2
- 0
app/controllers/owners_controller.rb View File

@@ -11,6 +11,8 @@ class OwnersController < ApplicationController
end

def show
return render_not_found unless @user.present?

@owner = Owner.find_by(login: params[:id]) || Owner.find_by(id: params[:id])
return render_ok(type: 'User') unless @owner.present?
# 组织


Loading…
Cancel
Save