mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Empezando a trabajar en menus
This commit is contained in:
@ -156,9 +156,11 @@ class Group extends BaseController
|
||||
$exp = explode('_',$key);
|
||||
$controller[] = $exp[0];
|
||||
}
|
||||
|
||||
if($controller != null){
|
||||
foreach (array_unique($controller) as $item){
|
||||
$rules_access[$item] = [];
|
||||
|
||||
foreach ($getChecked as $key=>$value){
|
||||
$exp = explode('_',$key);
|
||||
if($exp[0] == $item){
|
||||
@ -167,8 +169,10 @@ class Group extends BaseController
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$listPost['rules'] = json_encode($rules_access??'{}');
|
||||
|
||||
if(empty($listPost['id_group'])){
|
||||
$listPost['token'] = md5(uniqid(rand(), true));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user