This commit is contained in:
xdrm-brackets 2017-02-23 17:12:20 +01:00
parent 48175d376f
commit b8d724099f
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@
$grantedFor = []; $grantedFor = [];
/* (2) Search an action the user can perform in the list */ /* (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 */ /* (3) If have permission -> add to list */
if( in_array($id_action, $user['can']) ) if( in_array($id_action, $user['can']) )
@ -192,7 +192,7 @@
} }
/* (7) Extract corresponding action */ /* (7) Extract corresponding action */
$action = $grantedFor[$toPerform]; $action = $actionlist[$toPerform];
var_dump($action); var_dump($action);