Browse Source

various fixes

Olivier Massot 1 year ago
parent
commit
5bb7b4556b

+ 1 - 0
src/Enum/Access/FunctionEnum.php

@@ -33,6 +33,7 @@ enum FunctionEnum: string
     case COORDINATOR = 'COORDINATOR';
     case TECHNICAL_STAFF = 'TECHNICAL_STAFF';
     case ACCOUNTANT = 'ACCOUNTANT';
+    case COM_STAFF = 'COM_STAFF';
     case ACTIVE_MEMBER_OF_THE_CA = 'ACTIVE_MEMBER_OF_THE_CA';
     case HONORARY_PRESIDENT = 'HONORARY_PRESIDENT';
     case PRESIDENT = 'PRESIDENT';

+ 1 - 0
src/Enum/Organization/SettingsProductEnum.php

@@ -18,4 +18,5 @@ enum SettingsProductEnum: string
     case SCHOOL_PREMIUM = 'school-premium';
     case MANAGER = 'manager';
     case MANAGER_PREMIUM = 'manager-premium';
+    case EMPTY = '';
 }

+ 0 - 11
src/Service/Cron/Readme.md

@@ -1,11 +0,0 @@
-## Cronjobs
-
-This namespace group the cronjobs that can be executed with 
-
-    ot:cron [options] <action> [<jobs>]
-
-Each of the cronjobs are in `App\Service\Cron\Job` and shall implement the CronjobInterface.
-
-The job name is the class name, formatted in SnakeCase with hyphen `-`
-
-Ex: `MySuperJob` job's name will be `my-super-job`

+ 1 - 1
src/Service/Dolibarr/DolibarrSyncService.php

@@ -460,7 +460,7 @@ class DolibarrSyncService
             if (!array_key_exists($accessId, $index[$organizationId])) {
                 $index[$organizationId][$accessId] = [];
             }
-            $index[$organizationId][$accessId][] = $mission;
+            $index[$organizationId][$accessId][] = $mission->value;
         }
         return $index;
     }