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/views/tariffs/view.html.php +10 -5 1.6.4 → 1.8.16 View file →
@@ -12,14 +12,19 @@
12 12
13 13 // import Joomla view library
14 14 jimport('joomla.application.component.view');
15 15
16 -class VikBookingViewTariffs extends JViewVikBooking {
17 -
18 - function display($tpl = null) {
16 +class VikBookingViewTariffs extends JViewVikBooking
17 +{
18 + public function display($tpl = null)
19 + {
19 20 // Set the toolbar
20 21 $this->addToolBar();
21 22
23 + if (!JFactory::getUser()->authorise('core.vbo.pricing', 'com_vikbooking')) {
24 + VBOHttpDocument::getInstance()->close(403, JText::translate('JERROR_ALERTNOAUTHOR'));
25 + }
26 +
22 27 $cid = VikRequest::getVar('cid', array(0));
23 28 $aid = $cid[0];
24 29
25 30 $dbo = JFactory::getDBO();
@@ -121,9 +126,10 @@
121 126
122 127 /**
123 128 * Sets the toolbar
124 129 */
125 - protected function addToolBar() {
130 + protected function addToolBar()
131 + {
126 132 JToolBarHelper::title(JText::translate('VBMAINTARIFFETITLE'), 'vikbooking');
127 133 JToolBarHelper::save('cancel', JText::translate('VBMAINTARIFFEBACK'));
128 134 JToolBarHelper::spacer();
129 135 if (JFactory::getUser()->authorise('core.delete', 'com_vikbooking')) {
@@ -131,6 +137,5 @@
131 137 JToolBarHelper::spacer();
132 138 JToolBarHelper::spacer();
133 139 }
134 140 }
135 -
136 141 }