Commit 8493f50b authored by King Alex's avatar King Alex

Ajout de lien pour l'admin pour acceder a son dashboard

parent 40b9ea6e
......@@ -13,11 +13,18 @@ $title = "Recettes";
if(!is_null($user)){
$profile = [
'profile' => url('profile/'.$user->id),
'log out'=>url('users/logout'),
];
if($user->hasRole('admin')){
$profile = [
'profile' => url('profile/'.$user->id),
'log out'=>url('users/logout'),
'dashboard'=>url('admin'),
];
}else{
$profile = [
'profile' => url('profile/'.$user->id),
'log out'=>url('users/logout'),
];
}
if($user->hasRole('owner')){
$links = [
'Liens'=>'liens' ,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment