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.


Repository: https://github.com/webbuilders-group/silverstripe-login-files

Packagist: http://packagist.org/packages/webbuilders-group/silverstripe-login-files

Issues: https://github.com/webbuilders-group/silverstripe-login-files/issues

Authors: Ed Chipman

0 0 7


Readme

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

Versions

dev-master
2019-07-26 3:08pm UTC
BSD-3-Clause

Install composer require webbuilders-group/silverstripe-login-files dev-master

Manual Install: Download

Requires
  • silverstripe/assets: ~1.3
1.0.0
2019-07-18 3:11pm UTC
BSD-3-Clause

Install composer require webbuilders-group/silverstripe-login-files 1.0.0

Manual Install: Download

Requires
  • silverstripe/assets: ~1.3