webbuilders-group/silverstripe-login-files

Changes how assets in SilverStripe 4.x that require a logged in user are handled by redirecting them to login rather than returning a page not found while keeping draft assets as a page not found.

Installs: 92

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

1.1.0 2021-02-23 16:24 UTC

This package is auto-updated.

Last update: 2024-04-23 23:35:52 UTC


README

Changes how assets in SilverStripe 4.x that require a logged in user are handled by redirecting them to login rather than returning a page not found while keeping draft assets as a page not found. Restoring similar behavior to that of silverstripe/secureassets.

Maintainer Contact

Requirements

  • SilverStripe Assets 1.4+

Installation

composer require webbuilders-group/silverstripe-login-files

Configuration

By default this module will also redirect protected files when they are either missing their hash (for example a legacy url) or when the hash is out of date, this can be turned off by adding the following to your yaml configuration:

WebbuildersGroup\LoginFiles\Flysystem\FlysystemAssetStore:
    redirect_protected: false