From 3ef94fa338e8d75aa1527979d39f4c6acae7693f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz>
Date: Thu, 10 Oct 2024 00:53:58 +0200
Subject: [PATCH] Nenutime byt v kraji

---
 .gitlab-ci.yml                  | 2 +-
 lib/CF2022/Controller/Orders.pm | 2 +-
 lib/CF2022/Helpers/Auth.pm      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f563e0e..956117e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,7 +2,7 @@ image: docker:latest
 
 variables:
   DOCKER_TLS_CERTDIR: "/certs"
-  IMAGE_VER: 0.21.1
+  IMAGE_VER: 0.21.2
 
 services:
   - docker:dind
diff --git a/lib/CF2022/Controller/Orders.pm b/lib/CF2022/Controller/Orders.pm
index c7e3ef8..9f7af47 100644
--- a/lib/CF2022/Controller/Orders.pm
+++ b/lib/CF2022/Controller/Orders.pm
@@ -49,7 +49,7 @@ sub create ($c ) {
         return $c->error(403, 'Invalid token') if ! $claims;
 
         $group = $c->oauth_main_group;
-        return $c->error(403, 'Invalid token') if ! $group;
+        return $c->error(403, 'Invalid group') if ! $group;
 
         $args->{name} = $claims->{name};
 
diff --git a/lib/CF2022/Helpers/Auth.pm b/lib/CF2022/Helpers/Auth.pm
index f6206b6..9957968 100644
--- a/lib/CF2022/Helpers/Auth.pm
+++ b/lib/CF2022/Helpers/Auth.pm
@@ -8,7 +8,7 @@ use feature 'signatures';
 no warnings qw{ experimental::signatures };
 
 use constant KEY_FORMAT => "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----";
-use constant REGIONS    => qr{^(jhc|jhm|kvk|lbk|msk|olk|pak|pha|plk|stc|ulk|vys|zlk|khk):(f|regp)$};
+use constant REGIONS    => qr{^(cen|jhc|jhm|kvk|lbk|msk|olk|pak|pha|plk|stc|ulk|vys|zlk|khk):(f|regp)$};
 
 sub register ( $class, $self, $conf) {
 
-- 
GitLab