mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Añadido helper para crear los archivos de costantes de RBAC
This commit is contained in:
@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user