File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ $submenu_option = empty($submenu_option) ? '' : $submenu_option;
154
154
<span class="caret caret-right"></span>
155
155
</a>
156
156
<ul id="configuracion-entries" class="nav nav-pills nav-stacked left-submenu collapse <?= $ menu_option ==='configuracion ' ?'in ' :'' ?> " <?= $ menu_option ==='configuracion ' ?'aria-expanded="true" ' :'' ?> >
157
- <?php if ($ authUser ['rol ' ]=== 'admin ' ) : ?>
157
+ <?php if (in_array ( $ authUser ['rol ' ], [ 'admin ' , ' comp ' ]) ) : ?>
158
158
<li <?= $ submenu_option ==='arbitros ' ?'class="active" ' :'' ?> >
159
159
<?= $ this ->Html ->link ('Árbitros ' , ['controller ' =>'Arbitros ' , 'action ' =>'index ' ]) ?>
160
160
</li>
@@ -164,10 +164,12 @@ $submenu_option = empty($submenu_option) ? '' : $submenu_option;
164
164
<?= $ this ->Html ->link ('Áreas económicas ' , ['controller ' =>'Economico ' , 'action ' =>'areas ' ]) ?>
165
165
</li>
166
166
<?php endif ?>
167
- <?php if ($ authUser ['rol ' ]=== 'admin ' ) : ?>
167
+ <?php if (in_array ( $ authUser ['rol ' ], [ 'admin ' , ' comp ' ]) ) : ?>
168
168
<li <?= $ submenu_option ==='campos ' ?'class="active" ' :'' ?> >
169
169
<?= $ this ->Html ->link ('Campos ' , ['controller ' =>'Campos ' , 'action ' =>'index ' ]) ?>
170
170
</li>
171
+ <?php endif ?>
172
+ <?php if ($ authUser ['rol ' ]==='admin ' ) : ?>
171
173
<li <?= $ submenu_option ==='clubes ' ?'class="active" ' :'' ?> >
172
174
<?= $ this ->Html ->link ('Clubes ' , ['controller ' =>'Clubes ' , 'action ' =>'index ' ]) ?>
173
175
</li>
You can’t perform that action at this time.
0 commit comments