Skip to content

Instantly share code, notes, and snippets.

View bmjsmith's full-sized avatar

Brian Smith bmjsmith

View GitHub Profile
Computer Information:
Manufacturer: Micro-Star International Co., Ltd.
Model: MAG X570 TOMAHAWK WIFI (MS-7C84)
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 9 3900X 12-Core Processor
CPU Family: 0x17

Keybase proof

I hereby claim:

  • I am bmjsmith on github.
  • I am bmjsmith (https://keybase.io/bmjsmith) on keybase.
  • I have a public key ASBmw0I-PSDVyx29I_4PPUKBDI67pn0SR6CCXI_2TKX1ago

To claim this, I am signing this object:

@bmjsmith
bmjsmith / Admin.scala
Created July 22, 2012 20:07
Securing play 2.0 controllers sans boilerplate.
object Admin extends SecureableController {
implicit val requiredRight: Option[Right] = Some(Right("admin"))
def categories = authorized[AnyContent] { implicit request =>
Ok(html.adminCategories(Messages("admin.categories.title")))
}
}