From 25ab0d2ef58e7285fcf5036c03f01f86e30e8e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz> Date: Thu, 7 Jan 2021 15:04:01 +0100 Subject: [PATCH] Bugfix --- .gitlab-ci.yml | 2 +- lib/CF/Controller/Posts.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8c4d8d3..3266da8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ image: docker:19.03.12 variables: DOCKER_TLS_CERTDIR: "/certs" - IMAGE_VER: 1.9.1 + IMAGE_VER: 1.9.2 services: - docker:19.03.12-dind diff --git a/lib/CF/Controller/Posts.pm b/lib/CF/Controller/Posts.pm index 18a2d5c..9341764 100644 --- a/lib/CF/Controller/Posts.pm +++ b/lib/CF/Controller/Posts.pm @@ -19,7 +19,7 @@ sub create ($c) { # Navrh postupu muze predlozit jenom clen if ( $args->{type} == 0 && ! $c->user_roles->{member} ) { - return $c->error(401, 'Insufficient permissions'); + return $c->error(403, 'Insufficient permissions'); } my $program_entry = $c->schema->resultset('ProgramEntry')->search({ -- GitLab