Modules are not accessible if employee has no permissions on at least one of it's submodules

Some more db script modifications
This commit is contained in:
jekkos-t520
2014-09-23 19:14:25 +02:00
parent 4b16b68f24
commit 5cf73130c5
7 changed files with 32 additions and 14 deletions

View File

@@ -37,7 +37,7 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
('return_policy', 'Test'),
('timezone', 'America/New_York'),
('website', ''),
('tax_included', 'false');
('tax_included', '0');
-- --------------------------------------------------------
@@ -95,7 +95,7 @@ CREATE TABLE `ospos_giftcards` (
`person_id` INT NOT NULL,
PRIMARY KEY (`giftcard_id`),
UNIQUE KEY `giftcard_number` (`giftcard_number`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=48 ;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ;
--
-- Dumping data for table `ospos_giftcards`
@@ -329,7 +329,8 @@ INSERT INTO `ospos_permissions` (`module_id`, `person_id`) VALUES
('reports_inventory', 1),
('reports_employees', 1),
('reports_suppliers', 1),
('reports_sales', 1),
('reports_sales', 1),
('items_stock0', 1),
('customers', 1),
('employees', 1),
('giftcards', 1),