Browse code

Make permissions more granular

Benjamin Roth authored on02/08/2023 22:20:40
Showing1 changed files
... ...
@@ -21,4 +21,5 @@ $GLOBALS['BE_MOD']['content']['modals'] = array
21 21
 $GLOBALS['TL_MODELS']['tl_vr_modal'] = ModalModel::class;
22 22
 
23 23
 // Add permissions
24
+$GLOBALS['TL_PERMISSIONS'][] = 'modals';
24 25
 $GLOBALS['TL_PERMISSIONS'][] = 'modalp';
Browse code

Add popup user privileges

Benjamin Roth authored on12/01/2023 22:23:51
Showing1 changed files
... ...
@@ -19,3 +19,6 @@ $GLOBALS['BE_MOD']['content']['modals'] = array
19 19
 
20 20
 
21 21
 $GLOBALS['TL_MODELS']['tl_vr_modal'] = ModalModel::class;
22
+
23
+// Add permissions
24
+$GLOBALS['TL_PERMISSIONS'][] = 'modalp';
Browse code

Finalize module and also provide content element

Benjamin Roth authored on10/01/2023 21:52:20
Showing1 changed files
... ...
@@ -10,8 +10,12 @@ declare(strict_types=1);
10 10
  * @license LGPL-3.0-or-later
11 11
  */
12 12
 
13
+use vonRotenberg\ModalBundle\Model\ModalModel;
13 14
 
14 15
 $GLOBALS['BE_MOD']['content']['modals'] = array
15 16
 (
16 17
     'tables'      => array('tl_vr_modal', 'tl_content'),
17 18
 );
19
+
20
+
21
+$GLOBALS['TL_MODELS']['tl_vr_modal'] = ModalModel::class;
Browse code

Change directory structure of bundle and add first draft of fragment controller module

Benjamin Roth authored on10/01/2023 14:11:33
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
+
5
+/*
6
+ * This file is part of modal bundle for Contao.
7
+ *
8
+ * (c) Benjamin Roth
9
+ *
10
+ * @license LGPL-3.0-or-later
11
+ */
12
+
13
+
14
+$GLOBALS['BE_MOD']['content']['modals'] = array
15
+(
16
+    'tables'      => array('tl_vr_modal', 'tl_content'),
17
+);