定制 la-haute-societe/craft-restrict-asset-delete 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

la-haute-societe/craft-restrict-asset-delete

Composer 安装命令:

composer require la-haute-societe/craft-restrict-asset-delete

包简介

Prevent accidental removal of used assets

README 文档

README

A Craft CMS plugin to prevent the deletion of a used asset.

Requirements

This plugin requires Craft CMS 4.0.0 or later. Version 1.x of this plugin supports Craft CMS 3.x.

Installation

The easy way

Just install the plugin from the Craft Plugin Store.

Using Composer

  • Install with Composer from your project directory: composer require la-haute-societe/craft-restrict-asset-delete
  • In the Craft Control Panel, go to Settings → Plugins and click the Install button for Restrict Asset Delete plugin.

Restrict Asset Delete Overview

Want to prevent contributors from deleting a used asset? This plugin is for you!

Using Restrict Asset Delete

Once the plugin is activated, any attempt to delete an asset already linked to any entry by an unauthorized user will be refused.

Note: The plugin will not prevent linked assets within WYSIWYG editors fields from being deleted.

Users Restriction

The restriction can be set by using the relevant permission on a group or user level.

Admin Restriction

You can determine if Admin users can skip the restriction by going to Settings → Restrict Asset Delete.

You can also copy and modify the plugin config.php file to craft/config as restrict-asset-delete.php to override that behavior.

Note: By default, users with Admin permission are not allowed to skip the restriction.

Brought to you by
Logo La Haute Société

统计信息

  • 总下载量: 8.04k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固