You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/06/25 04:01:29 UTC

[4/4] git commit: [#6053] undo basetest_project_root.py change

[#6053] undo basetest_project_root.py change


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/5aeb9c09
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/5aeb9c09
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/5aeb9c09

Branch: refs/heads/master
Commit: 5aeb9c0977d06e657214dc54a5103ccf1abd34b1
Parents: 5cdcbbe
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Tue Jun 25 02:00:29 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Tue Jun 25 02:00:45 2013 +0000

----------------------------------------------------------------------
 Allura/allura/controllers/basetest_project_root.py | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/5aeb9c09/Allura/allura/controllers/basetest_project_root.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/basetest_project_root.py b/Allura/allura/controllers/basetest_project_root.py
index d29656b..8c48ed6 100644
--- a/Allura/allura/controllers/basetest_project_root.py
+++ b/Allura/allura/controllers/basetest_project_root.py
@@ -123,8 +123,6 @@ class BasetestProjectRootController(WsgiDispatchController, ProjectController):
         c.project = M.Project.query.get(shortname='test', neighborhood_id=self.p_nbhd._id)
         auth = plugin.AuthenticationProvider.get(request)
         user = auth.by_username(environ.get('username', 'test-admin'))
-        if not user:
-            user = M.User.by_username('test-admin')
         environ['beaker.session']['userid'] = user._id
         c.user = auth.authenticate_request()
         return WsgiDispatchController.__call__(self, environ, start_response)