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;
    }
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;
    }
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 ; }
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
Verifies this user is allowed access the given ACO .