src/DataContainer/ToggleIconCallback.php
private function hasAccess()
    {
        if ($this->user instanceof \BackendUser) {
            return $this->user->hasAccess($this->table . '::' . $this->column, 'alexf');
        }

        return false;
    }
private function hasAccess()
    {
        if ($this->user instanceof \BackendUser) {
            return $this->user->hasAccess($this->table . '::' . $this->column, 'alexf');
        }

        return false;
    }
Check if user has access.

@return bool