Comments (3)
这种需求不多见啊,不过你可以通过编写插件来实现。
from blessing-skin-server.
你可以像这样编写插件,下面是 bootstrap.php
的源码(随手写的,不保证正确性):
return function () {
$user = app('users')->get(session('uid'));
if (request()->is('skinlib/*') && ! $user->isAdmin()) {
return abort(403, trans('auth.check.admin'));
}
};
具体如何制作一个插件,可移步 插件开发文档。
from blessing-skin-server.
不考虑实现这个特性(除非真的有较大的呼声)。我关闭 issue 了,如果有问题可以继续讨论。
from blessing-skin-server.
Related Issues (20)
- 为什么角色名最少要求3个字? HOT 4
- 批量导入 消除中文乱码后异常 HOT 9
- 编译安装 BS v4 在执行 yarn 时报错 HOT 3
- 开启论坛数据对接后提示严重错误,几乎所有功能无法使用 HOT 5
- 第三方更新源 HOT 7
- v4 在执行安装向导前仍需在 .env 中手动填写数据库信息 HOT 1
- 可否考虑增加 NSFW filter? HOT 4
- 拖动改变浏览器窗口大小会导致人物预览越来越大…… HOT 6
- BS3.5升级至4.0出错 HOT 3
- 可否批量上传皮肤? HOT 4
- 插件市场中搜索框不可用 HOT 2
- 无法进行安装 HOT 2
- 域名更换后无法使用 HOT 1
- 能否添加sqlite支持呢? HOT 1
- 403 Forbidden HOT 1
- 404 Not Found HOT 11
- postgresql报错 HOT 1
- 我想问下,这个皮肤站咋了
- 仓库已迁移 (Repo has been moved) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blessing-skin-server.