From 2a5aa106d26c0f9b7e17398afb55605db9a38cd1 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 26 Feb 2024 10:07:04 +0100 Subject: [PATCH] wip #6744 @0.5 --- composer.json | 2 +- src/app/Permissions.php | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/composer.json b/composer.json index 9f6e5ae..9b4b123 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ ], "require": { "php": ">=8.2", - "cubist/cms-back": "dev-backpack6" + "cubist/cms-back": "dev-backpack5" }, "extra": { "branch-alias": { diff --git a/src/app/Permissions.php b/src/app/Permissions.php index 9de667d..29a6ecb 100644 --- a/src/app/Permissions.php +++ b/src/app/Permissions.php @@ -230,20 +230,4 @@ class Permissions return []; } - public static function getAllInvoicableCompanies() - { - $data = self::_getData(); - $res = []; - foreach ($data['invoicableCompany'] as $id => $invoicable) { - if ($id !== $invoicable) { - continue; - } - if (!isset($data['companyNames'][$id])) { - continue; - } - $res[$id] = $data['companyNames'][$id]; - } - return $res; - } - } -- 2.39.5