mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
add user_cla response
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
class Users::ClasController < Users::BaseController
|
class Users::ClasController < Users::BaseController
|
||||||
|
before_action :require_login
|
||||||
|
before_action :private_user_resources!
|
||||||
def index
|
def index
|
||||||
@user_clas = UserCla.where(user: @_observed_user)
|
@user_clas = UserCla.where(user: @_observed_user)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -5,4 +5,7 @@ json.state user_cla.state
|
|||||||
json.created_at format_time(user_cla.created_at)
|
json.created_at format_time(user_cla.created_at)
|
||||||
json.cla do
|
json.cla do
|
||||||
json.partial! "/organizations/clas/detail", locals: {cla: user_cla.cla}
|
json.partial! "/organizations/clas/detail", locals: {cla: user_cla.cla}
|
||||||
end
|
end
|
||||||
|
json.organization do
|
||||||
|
json.partial! "organizations/organizations/simple", organization: user_cla.cla.organization
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user