Merge remote-tracking branch 'origin/standalone_develop' into standalone_develop
This commit is contained in:
commit
94667f4b71
|
@ -11,7 +11,8 @@ class OwnersController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@owner = Owner.find_by(login: params[:id]) || Owner.find_by(id: params[:id])
|
login = params[:id].to_s[0..-6]
|
||||||
|
@owner = Owner.find_by(login: login) || Owner.find_by(id: login)
|
||||||
clear_user_cookie unless @owner.present?
|
clear_user_cookie unless @owner.present?
|
||||||
return render_not_found unless @owner.present?
|
return render_not_found unless @owner.present?
|
||||||
# 组织
|
# 组织
|
||||||
|
|
Loading…
Reference in New Issue