Skip to content

Commit 2ed8110

Browse files
committed
Merge remote-tracking branch 'philo/1_1_stable'
2 parents ca21c70 + c91797a commit 2ed8110

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

docker/web/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
ARG CADDY_VERSION="2.9.1"
1+
ARG CADDY_VERSION="2.10.0"
2+
ARG CADDY_FS_S3_VERSION=v0.10.0
23

34
FROM caddy:$CADDY_VERSION-builder-alpine AS builder
45

56
RUN xcaddy build \
6-
--with github.com/sagikazarmark/caddy-fs-s3
7+
--with github.com/sagikazarmark/caddy-fs-s3@${CADDY_FS_S3_VERSION}
78

89
FROM caddy:$CADDY_VERSION-alpine
910

lib/philomena_web/controllers/profile/scratchpad_controller.ex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ defmodule PhilomenaWeb.Profile.ScratchpadController do
66

77
plug PhilomenaWeb.FilterBannedUsersPlug
88
plug PhilomenaWeb.CanaryMapPlug, edit: :index, update: :index
9-
plug :load_resource, model: User, id_name: "profile_id", id_field: "slug", persisted: true
9+
10+
plug :load_and_authorize_resource,
11+
model: User,
12+
id_name: "profile_id",
13+
id_field: "slug",
14+
persisted: true
1015

1116
def edit(conn, _params) do
1217
changeset = Users.change_user(conn.assigns.user)

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule Philomena.MixProject do
44
def project do
55
[
66
app: :philomena,
7-
version: "1.1.0",
7+
version: "1.1.2",
88
elixir: "~> 1.5",
99
elixirc_paths: elixirc_paths(Mix.env()),
1010
compilers: Mix.compilers(),

0 commit comments

Comments
 (0)