 				cb()
 	], callback
 
-try_admin_access = (requester, project_id, test, callback) ->
+try_admin_access = (user, project_id, test, callback) ->
 	async.parallel [
 		(cb) ->
-			requester.post {
+			user.request.post {
 				uri: "/project/#{project_id}/rename"
 				json:
 					newProjectName: "new-name"

				@owner.makePublic @project_id, "readAndWrite", done

		it "should allow a user read access to it", (done) ->
			expect_read_access @other1.request, @project_id, done
			
		it "should not allow a user write access to its settings"#, (done) ->
		# 	expect_no_settings_write_access @other1.request, @project_id, redirect_to: "/restricted", done
		
		it "should not allow a user admin access to it", (done) ->
			expect_no_admin_access @other1.request, @project_id, redirect_to: "/restricted", done

		it "should allow anonymous user read access to it", (done) ->
			expect_read_access @anon.request, @project_id, done
			
		it "should not allow anonymous user write access to its settings", (done) ->
			expect_no_settings_write_access @anon.request, @project_id, redirect_to: "/restricted", done
			
		it "should not allow anonymous user admin access to it", (done) ->
			expect_no_admin_access @anon.request, @project_id, redirect_to: "/restricted", done
		
					password: @password
			}, (error, response, body) =>
				return callback(error) if error?
				db.users.findOne {email: @email}, (error, user) =>
					return callback(error) if error?
					@id = user?._id?.toString()
					callback()
	
	createProject: (name, callback = (error, project_id) ->) ->
		@request.post {
