Example #1
0
 function showTabPermissionsAction()
 {
     $settings = DevblocksPlatform::getPluginSettingsService();
     $tpl = DevblocksPlatform::getTemplateService();
     $tpl->assign('path', $this->_TPL_PATH);
     $license = CerberusLicense::getInstance();
     $tpl->assign('license', $license);
     $plugins = DevblocksPlatform::getPluginRegistry();
     $tpl->assign('plugins', $plugins);
     $acl = DevblocksPlatform::getAclRegistry();
     $tpl->assign('acl', $acl);
     $roles = DAO_WorkerRole::getWhere();
     $tpl->assign('roles', $roles);
     $workers = DAO_Worker::getAllActive();
     $tpl->assign('workers', $workers);
     // Permissions enabled
     $acl_enabled = $settings->get('cerberusweb.core', CerberusSettings::ACL_ENABLED);
     $tpl->assign('acl_enabled', $acl_enabled);
     if (empty($license) || !empty($license) && isset($license['a'])) {
         $tpl->display('file:' . $this->_TPL_PATH . 'configuration/tabs/acl/trial.tpl');
     } else {
         $tpl->display('file:' . $this->_TPL_PATH . 'configuration/tabs/acl/index.tpl');
     }
 }
Example #2
0
 function showTabACLAction()
 {
     $settings = DevblocksPlatform::getPluginSettingsService();
     $tpl = DevblocksPlatform::getTemplateService();
     $tpl->assign('path', $this->_TPL_PATH);
     $license = PortSensorLicense::getInstance();
     $tpl->assign('license', $license);
     $plugins = DevblocksPlatform::getPluginRegistry();
     $tpl->assign('plugins', $plugins);
     $acl = DevblocksPlatform::getAclRegistry();
     $tpl->assign('acl', $acl);
     $roles = DAO_WorkerRole::getWhere();
     $tpl->assign('roles', $roles);
     $workers = DAO_Worker::getAllActive();
     $tpl->assign('workers', $workers);
     // Permissions enabled
     $acl_enabled = $settings->get('portsensor.core', PortSensorSettings::ACL_ENABLED);
     $tpl->assign('acl_enabled', $acl_enabled);
     $tpl->display('file:' . $this->_TPL_PATH . 'setup/tabs/acl/index.tpl');
 }