Changes how assets in Silverstripe 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

3 0 293


Readme

Silverstripe Login Files

Changes how assets in Silverstripe 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+ or 2.0+

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-8-26 2458691: UTC
BSD-3-Clause

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

Manual Install: Download

Requires
  • silverstripe/assets: ~1.3
1.2.0
2024-50-6 2460529: UTC
BSD-3-Clause

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

Manual Install: Download

Requires
  • silverstripe/assets: ~1.4|~2.0
1.1.0
2021-24-23 2459269: UTC
BSD-3-Clause

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

Manual Install: Download

Requires
  • silverstripe/assets: ~1.4
1.0.0
2019-11-18 2458683: UTC
BSD-3-Clause

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

Manual Install: Download

Requires
  • silverstripe/assets: ~1.3