src/Engine/Traits/WithPermissionTrait.php
private function _checkOption($name)
    {
        if ($name == 'list')
            return true;

        $names = [
            'store' => 'add',
            'update' => 'edit',
            'delete' => 'delete',
            'order' => 'order',
            'export' => 'export'
        ];

        return $this->crudeSetup->haveOption($names[$name]);
    }
private function _checkOption($name)
    {
        if ($name == 'list')
            return true;

        $names = [
            'store' => 'add',
            'update' => 'edit',
            'delete' => 'delete',
            'order' => 'order',
            'export' => 'export'
        ];

        return $this->crudeSetup->haveOption($names[$name]);
    }
private function _checkOption ( $ name ) { if ( $ name == 'list' ) return true ; $ names = [ 'store' => 'add' , 'update' => 'edit' , 'delete' => 'delete' , 'order' => 'order' , 'export' => 'export' ] ; return $ this -> crudeSetup -> haveOption ( $ names [ $ name ] ) ; }
Check option by name
@param  string $name
@return boolean
Check option by name