original_string: public function isAllowed($aco)
      {
          $cacheKey = 'isAllowed(' . $this->get('id') . ", {$aco})";
          $cache = static::cache($cacheKey);
          if ($cache === null) {
              $cache = TableRegistry::get('User.Permissions')->check($this, $aco);
              static::cache($cacheKey, $cache);
          }
  
          return $cache;
      }
code: public function isAllowed($aco)
      {
          $cacheKey = 'isAllowed(' . $this->get('id') . ", {$aco})";
          $cache = static::cache($cacheKey);
          if ($cache === null) {
              $cache = TableRegistry::get('User.Permissions')->check($this, $aco);
              static::cache($cacheKey, $cache);
          }
  
          return $cache;
      }
code_tokens: public function isAllowed ( $ aco ) { $ cacheKey = 'isAllowed(' . $ this -> get ( 'id' ) . ", {$aco})" ; $ cache = static :: cache ( $ cacheKey ) ; if ( $ cache === null ) { $ cache = TableRegistry :: get ( 'User.Permissions' ) -> check ( $ this , $ aco ) ; static :: cache ( $ cacheKey , $ cache ) ; } return $ cache ; }
docstring: Verifies this user is allowed access the given ACO.
  
  ### Usage:
  
  ```php
  // Checks if current user is allowed to edit created contents:
  user()->isAllowed('Content/Admin/Manage/edit');
  ```
  
  @param string $aco An ACO path. e.g. `Plugin/Prefix/Controller/action`
  @return bool True if user can access ACO, false otherwise
docstring_tokens: Verifies this user is allowed access the given ACO .