allow() public méthode

Check if the current user has a permission by its name or id
public allow ( string $permission ) : boolean
$permission string Permission name or id.
Résultat boolean
 /**
  * Check if the current user has a permission by its name or id
  *
  * @param string $permission Permission name or id.
  * @return bool 
  * @static 
  */
 public static function allow($permission)
 {
     return \App\Services\Access\Access::allow($permission);
 }