Permalink
Browse files

Make log back and switchboard page need authentication

  • Loading branch information...
1 parent fe5030b commit 09a200748cd8fec884ca4ba85ddb3a3f8d93f281 @bruntonspall bruntonspall committed Dec 7, 2012
@@ -8,7 +8,7 @@ import scala.xml.Text
class LogbackLevelPage(val applicationName: String) extends HtmlManagementPage with Postable {
val myLogger = LoggerFactory.getLogger(getClass)
-
+ override val needsAuth = true
val path = "/management/logback"
private val levels = List(
@@ -66,6 +66,7 @@ case class DefaultSwitch(name: String, description: String, initiallyOn: Boolean
class Switchboard(val applicationName: String, switches: Seq[Switchable]) extends HtmlManagementPage with Postable {
val title = "Switchboard"
val path = "/management/switchboard"
+ override val needsAuth = true
def body(r: HttpRequest) = {
val switchToShow = r getParameter "switch"

0 comments on commit 09a2007

Please sign in to comment.