]> _ Git - cubedesigners_userdatabase.git/commitdiff
wip #6744 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 26 Feb 2024 09:07:04 +0000 (10:07 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 26 Feb 2024 09:07:04 +0000 (10:07 +0100)
composer.json
src/app/Permissions.php

index 9f6e5ae229522d376469e77ecd4eabd7fc652e0e..9b4b1238a07e8675ef69fcc029c7a07d46328b37 100644 (file)
@@ -28,7 +28,7 @@
     ],
     "require": {
         "php": ">=8.2",
-        "cubist/cms-back": "dev-backpack6"
+        "cubist/cms-back": "dev-backpack5"
     },
     "extra": {
         "branch-alias": {
index 9de667d2f87c0b316a81763a27e21d9f179892a4..29a6ecbb77b438dcd056dff605dd03065b9dd7af 100644 (file)
@@ -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;
-    }
-
 }