I'm triying to make certain menu items visible for users that have specific permissions but so far i have failed, what im doing is this:

```
    function(){                                                
                if(Yii::$app->user->can('abrir caja'))
                {
                  return true;                                                    
                }
                  else
                  {
                   return false;
                  }                                                
     }

```

But im failing to get the user permissions is what i'm thinking, my question is how can i get the current user permissions?
I have already checked that my users have their respective roles and permissions assigned.