From 988a36babc2b203d7a8de40eef390962f8a11313 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 23 Dec 2020 03:47:45 +0000 Subject: Users API should return twofa_scheme only for administrators (#34242). git-svn-id: http://svn.redmine.org/redmine/trunk@20687 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/users/show.api.rsb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/views/users/show.api.rsb b/app/views/users/show.api.rsb index 5fe3d5b1c..a19a8c637 100644 --- a/app/views/users/show.api.rsb +++ b/app/views/users/show.api.rsb @@ -9,7 +9,7 @@ api.user do api.updated_on @user.updated_on api.last_login_on @user.last_login_on api.passwd_changed_on @user.passwd_changed_on - api.twofa_scheme @user.twofa_scheme + api.twofa_scheme @user.twofa_scheme if User.current.admin? || (User.current == @user) api.api_key @user.api_key if User.current.admin? || (User.current == @user) api.status @user.status if User.current.admin? -- cgit v1.2.3