Vincent GUFFON 3 年之前
父節點
當前提交
0dbb86c1b0

+ 5 - 0
config/opentalent/modulesbyconditions.yaml

@@ -65,6 +65,11 @@ opentalent:
                     name: App\Service\Network\Utils
                     function: isCMF
         NetworkOrganization:
+            conditions:
+                service:
+                    name: App\Service\Network\Utils
+                    function: isCMF
+        Cotisation:
             conditions:
                 service:
                     name: App\Service\Network\Utils

+ 27 - 2
config/opentalent/products.yaml

@@ -11,6 +11,7 @@ opentalent:
           - City
           - Country
           - Tagg
+          - Enum
         actions:
           - Export_list
           - Export_card
@@ -32,7 +33,12 @@ opentalent:
           - PlaceRepair
           - Room
           - OrganizationAddressPostal
+          - GpsCoordinate
           - Organization
+          - Siret
+          - Parameters
+          - AdminAccess
+          - BankAccount
           - OrganizationHoliday
           - TypeOfPractice
           - Activity
@@ -48,6 +54,7 @@ opentalent:
           - OrganizationFunction
           - FunctionType
           - PersonAddressPostal
+          - GpsCoordinate
           - PersonActivity
           - PersonHoliday
           - OrganizationResponsability
@@ -89,13 +96,11 @@ opentalent:
         entities:
           - Message
           - Email
-          - Sms
           - ReportMessage
         actions:
           - Rulerz
         roles:
           - ROLE_EMAILS
-          - ROLE_TEXTO
 
       MessagesAdvanced:
         entities:
@@ -103,6 +108,15 @@ opentalent:
         roles:
           - ROLE_MAILS
 
+      Sms:
+        entities:
+          - Sms
+          - MobytUserStatus
+        actions:
+          - Rulerz
+        roles:
+          - ROLE_TEXTO
+
       TemplateMessages:
         entities:
           - TemplateSystem
@@ -224,6 +238,7 @@ opentalent:
             - BillAccounting
             - BillPayment
             - Bill
+            - BillingSetting
             - BillLine
             - AccessPayer
             - AccessIntangible
@@ -304,6 +319,14 @@ opentalent:
             - ChangeEmailAdmin
             - TakeOutOrganization
 
+      Cotisation:
+        entities:
+          - Cotisation
+
+      Dolibarr:
+        entities:
+          - DolibarrAccount
+
     products:
       artist:
         modules:
@@ -320,6 +343,8 @@ opentalent:
           - Messages
           - Tagg
           - Statistic
+          - Cotisation
+          - Dolibarr
 
       artist_premium:
         extend: artist

+ 0 - 1
config/packages/security.yaml

@@ -167,5 +167,4 @@ security:
     # Easy way to control access for large sections of your site
     # Note: Only the *first* access control that matches will be used
     access_control:
-        - { path: ^/api, roles: IS_AUTHENTICATED_FULLY }
         - { path: ^/api, roles: IS_HAVING_MODULE }

+ 0 - 2
src/Security/Voter/ModuleVoter.php

@@ -7,11 +7,9 @@ use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
 use App\Entity\Access\Access;
 use App\Entity\Organization\Organization;
 use App\Service\Security\Module;
-use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
 use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
 use Symfony\Component\Security\Core\Authorization\Voter\Voter;
-use ApiPlatform\Core\Util\RequestAttributesExtractor;
 
 /**
  * Class ModuleVoter : permet d'assurer que la resource appelée est comprise dans l'un des modules de la structure