mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 11:07:11 +02:00
Display user logins on profiles (#26127).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17721 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -89,16 +89,10 @@ class Redmine::ApiTest::UsersTest < Redmine::ApiTest::Base
|
||||
assert_select 'user id', :text => '2'
|
||||
end
|
||||
|
||||
test "GET /users/:id should not return login for other user" do
|
||||
test "GET /users/:id should return login for visible user" do
|
||||
get '/users/3.xml', :headers => credentials('jsmith')
|
||||
assert_response :success
|
||||
assert_select 'user login', 0
|
||||
end
|
||||
|
||||
test "GET /users/:id should return login for current user" do
|
||||
get '/users/2.xml', :headers => credentials('jsmith')
|
||||
assert_response :success
|
||||
assert_select 'user login', :text => 'jsmith'
|
||||
assert_select 'user login', :text => 'dlopper'
|
||||
end
|
||||
|
||||
test "GET /users/:id should not return api_key for other user" do
|
||||
|
||||
Reference in New Issue
Block a user