Skip to content

Commit

Permalink
fix streamer creation page - closes #15426
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jun 4, 2024
1 parent 736b484 commit 3d248d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/Streamer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ final class Streamer(env: Env, apiC: => Api) extends LilaController(env):
ctx.me.foldUse(notFound): me ?=>
if StreamerModel.canApply(me) || isGranted(_.Streamers) then
api.find(getUserStr("u").ifTrue(isGranted(_.Streamers)).map(_.id) | me.userId).flatMap {
_.fold(Ok.snip(views.streamer.bits.create).toFuccess)(f)
_.fold(Ok.page(views.streamer.create))(f)
}
else
Ok.page:
Expand Down

0 comments on commit 3d248d8

Please sign in to comment.