mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-24 17:18:44 -04:00
Newer migration support (#1576)
This commit is contained in:
1 parent
826837e902
commit
c5a78613ba
13 files changed
+103
-94
No files matched your search
@@ -48,15 +48,9 @@ class Secure_Controller extends CI_Controller
|
||||
$allowed_modules = $this->Module->get_allowed_office_modules($logged_in_employee_info->person_id);
|
||||
}
|
||||
|
||||
// do not show migrate module if no migration is required
|
||||
|
||||
$this->load->library('migration');
|
||||
foreach($allowed_modules->result() as $module)
|
||||
{
|
||||
if(!$this->migration->latest() || $module->module_id != 'migrate')
|
||||
{
|
||||
$data['allowed_modules'][] = $module;
|
||||
}
|
||||
$data['allowed_modules'][] = $module;
|
||||
}
|
||||
|
||||
$data['user_info'] = $logged_in_employee_info;
|
||||
|
||||
Reference in new issue
Block a user