]> git.agnieray.net Git - galette.git/blobdiff - galette/lib/Galette/Controllers/GaletteController.php
Use same permissions in dynamic and core fields
[galette.git] / galette / lib / Galette / Controllers / GaletteController.php
index ab5e18a88489e820f02b0b0dc94629580c14e5bd..074d1f72338116794dee113f41f3f1371aa46e61 100644 (file)
@@ -21,6 +21,7 @@
 
 namespace Galette\Controllers;
 
+use Galette\Entity\FieldsConfig;
 use Galette\Entity\Social;
 use Galette\Repository\PaymentTypes;
 use Slim\Psr7\Request;
@@ -491,7 +492,8 @@ class GaletteController extends AbstractController
             'time'                  => time(),
             'categories'            => FieldsCategories::getList($this->zdb),
             'categorized_fields'    => $fc->getCategorizedFields(),
-            'non_required'          => $fc->getNonRequired()
+            'non_required'          => $fc->getNonRequired(),
+            'perm_names'            => FieldsConfig::getPermissionsList()
         ];
 
         // display page