[fix]
This commit is contained in:
parent
48175d376f
commit
b8d724099f
|
@ -135,7 +135,7 @@
|
|||
$grantedFor = [];
|
||||
|
||||
/* (2) Search an action the user can perform in the list */
|
||||
foreach($actionlist as $id_action=>$acttion){
|
||||
foreach($actionlist as $id_action=>$action){
|
||||
|
||||
/* (3) If have permission -> add to list */
|
||||
if( in_array($id_action, $user['can']) )
|
||||
|
@ -192,7 +192,7 @@
|
|||
}
|
||||
|
||||
/* (7) Extract corresponding action */
|
||||
$action = $grantedFor[$toPerform];
|
||||
$action = $actionlist[$toPerform];
|
||||
|
||||
|
||||
var_dump($action);
|
||||
|
|
Loading…
Reference in New Issue