Añadido helper para crear los archivos de costantes de RBAC

This commit is contained in:
imnavajas
2024-05-06 13:34:16 +02:00
parent 122e194b16
commit 7492616dc6
15 changed files with 363 additions and 118 deletions

View File

@ -21,8 +21,6 @@ class Group extends \App\Controllers\GoBaseController
protected $indexRoute = 'userGroupList';
private $group_user_model;
public function initController(\CodeIgniter\HTTP\RequestInterface $request, \CodeIgniter\HTTP\ResponseInterface $response, \Psr\Log\LoggerInterface $logger)
{
self::$viewPath = getenv('theme.path') . 'form/group/';
@ -42,7 +40,6 @@ class Group extends \App\Controllers\GoBaseController
$this->viewData['usingClientSideDataTable'] = true;
$this->viewData['pageSubTitle'] = lang('Basic.global.ManageAllRecords', [lang('Groups.group')]);
// IMN
$this->group_user_model = new GroupsUsersModel();
$this->viewData['model'] = $this->model;
parent::index();
@ -56,13 +53,13 @@ class Group extends \App\Controllers\GoBaseController
$postData = $this->request->getPost();
$temp_data['id'] = $groupEntity->id;
$temp_data['name'] = $postData['name'];
$temp_data['title'] = $postData['title'];
$temp_data['description'] = $postData['description'];
// Clear not rules fields
unset($postData['safekat_token']);
unset($postData['id']);
unset($postData['name']);
unset($postData['title']);
unset($postData['description']);
unset($postData['save']);
unset($postData['selectAll']);
@ -146,13 +143,13 @@ class Group extends \App\Controllers\GoBaseController
$postData = $this->request->getPost();
$temp_data['id'] = $groupEntity->id;
$temp_data['name'] = $postData['name'];
$temp_data['title'] = $postData['title'];
$temp_data['description'] = $postData['description'];
// Clear not rules fields
unset($postData['safekat_token']);
unset($postData['id']);
unset($postData['name']);
unset($postData['title']);
unset($postData['description']);
unset($postData['save']);
unset($postData['selectAll']);