From 45639c1dc5bc1b30d7ae5821e72df07cf97ec1b2 Mon Sep 17 00:00:00 2001 From: takezoe Date: Wed, 3 Jul 2013 18:00:45 +0900 Subject: [PATCH] Fix OneselfAuthenticator. --- src/main/scala/util/Authenticator.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/scala/util/Authenticator.scala b/src/main/scala/util/Authenticator.scala index 3eed8e6c9..1244fa4ee 100644 --- a/src/main/scala/util/Authenticator.scala +++ b/src/main/scala/util/Authenticator.scala @@ -8,10 +8,10 @@ import RepositoryService.RepositoryInfo * Allows only oneself and administrators. */ trait OneselfAuthenticator { self: ControllerBase => - protected def oneselfOnly(action: (RepositoryInfo) => Any) = { authenticate(action) } - protected def oneselfOnly[T](action: (T, RepositoryInfo) => Any) = (form: T) => { authenticate(action(form, _)) } + protected def oneselfOnly(action: => Any) = { authenticate(action) } + protected def oneselfOnly[T](action: T => Any) = (form: T) => { authenticate(action(form)) } - private def authenticate(action: (RepositoryInfo) => Any) = { + private def authenticate(action: => Any) = { { val paths = request.getRequestURI.substring(request.getContextPath.length).split("/") context.loginAccount match {