Skip to content
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.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_config
src/LoginFiles/Flysystem
.editorconfig
.gitattributes
.gitignore
CHANGELOG.md
CODE-OF-CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
_config.php
composer.json

README.md

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. Restoring similar behavior to that of silverstripe/secureassets.

Maintainer Contact

Requirements

  • SilverStripe Framework 4.3+
  • SilverStripe Assets 1.3+

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
You can’t perform that action at this time.