PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.8.16
VikBooking Hotel Booking Engine & PMS v1.8.16
1.8.16 1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 All 37 releases
← All changes | admin/layouts/operators/permissions.php +6 -0 1.7.2 → 1.8.16 View file →
@@ -208,8 +208,14 @@
208 208 <?php echo VBOParamsRendering::getInstance($tool_permissions, $tool_settings)->setInputName('tool_perms[' . $tool_id . ']')->getHtml(); ?>
209 209 </div>
210 210 </div>
211 211 </div>
212 +
213 + <?php
214 + // if the current user does not have access to this tool, display a warning
215 + if ($operator_id && !in_array($tool_id, array_column($operator['perms'], 'type'))): ?>
216 + <p class="warn"><?php echo JText::translate('VBO_OPERATOR_NO_TOOL_PERMS'); ?></p>
217 + <?php endif; ?>
212 218 </div>
213 219 <?php
214 220 }
215 221 ?>