Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: View button on private assets #11860

Closed
okolvik-avento opened this issue Sep 1, 2022 · 2 comments
Closed

[4.x]: View button on private assets #11860

okolvik-avento opened this issue Sep 1, 2022 · 2 comments
Assignees

Comments

@okolvik-avento
Copy link
Contributor

What happened?

Description

The view button should not be shown (404), or should have a cp-link, on assets that have no public url.

if (in_array($this->kind, [Asset::KIND_IMAGE, Asset::KIND_PDF, Asset::KIND_TEXT])) {

Craft CMS version

4.2.3

PHP version

8.0

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@brandonkelly
Copy link
Member

Thanks for reporting that! We’ve fixed this for the next release.

@brandonkelly
Copy link
Member

Craft 4.2.4 is tagged with that fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants