mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 03:15:57 +01:00
Let administrators see locked user profiles.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3493 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -103,12 +103,11 @@ class UsersControllerTest < ActionController::TestCase
|
||||
get :show, :id => 2
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
|
||||
def test_show_inactive
|
||||
@request.session[:user_id] = nil
|
||||
get :show, :id => 5
|
||||
assert_response 404
|
||||
assert_nil assigns(:user)
|
||||
end
|
||||
|
||||
def test_show_should_not_reveal_users_with_no_visible_activity_or_project
|
||||
@@ -116,6 +115,13 @@ class UsersControllerTest < ActionController::TestCase
|
||||
get :show, :id => 9
|
||||
assert_response 404
|
||||
end
|
||||
|
||||
def test_show_inactive_by_admin
|
||||
@request.session[:user_id] = 1
|
||||
get :show, :id => 5
|
||||
assert_response 200
|
||||
assert_not_nil assigns(:user)
|
||||
end
|
||||
|
||||
def test_add_routing
|
||||
assert_routing(
|
||||
|
||||
Reference in New Issue
Block a user