Comments (6)
See
- 56% #5511
from alist.
Thanks for opening your first issue here! Be sure to follow the issue template!
from alist.
尝试了一下,貌似不行。
使用api设置,提示不能创建管理员用户。
尝试修改sqlite文件,也不行。
可能设计上就不让多管理员。
from alist.
新建用户,权限全给,不就是管理员?
from alist.
没记错的话应该只能通过修改数据库来操作
from alist.
CREATE TRIGGER change_role_if_zero
AFTER INSERT ON x_users
FOR EACH ROW
WHEN NEW.role = 0
BEGIN
UPDATE x_users
SET role = 2
WHERE id = NEW.id;
END;
这样就能保证每个新用户都是管理员了。
可惜alist默认并不带sqlite3软件,不能直接在docker启动顺便执行一下。
apk update
apk add sqlite
然后再用sqlite连接数据库就好了。
上面的触发器应该只在新建用户的时候触发。
from alist.
Related Issues (20)
- apple-touch-icon 无法修改 HOT 2
- please delete it
- 希望解决onedrive for business在不使用web代理的情况下能够在线预览音乐 HOT 4
- 配置cdn后,网页无法访问,显示空白 HOT 1
- 暂停出现视频下移,超出画面 HOT 1
- 如何给直链添加防盗链 HOT 4
- onedrive挂载后显示Access Denied HOT 2
- 重命名某文件为同目录下已经存在的文件,没有任何提示,已存在的文件被直接覆盖。 HOT 2
- 增加PikPak网盘的离线下载功能 HOT 1
- 文件预览功能问题 HOT 5
- 文件直播推流功能 HOT 1
- 反向代理二级目录 登录界面 logo 文件返回 404 HOT 3
- 使用 ./alist 的任何命令提示 Segmentation fault(段错误) HOT 12
- 阿里云盘下载优先使用cdn直链 HOT 2
- [feature request]批量重命名仅对已选中的文件 HOT 1
- 迅雷网盘内容发生变化后, alist无法同步更新内容 HOT 2
- 115网盘重命名后缀行为异常 HOT 2
- Support HEIC Format in Image View | 在图片视图中支持HEIC格式 HOT 1
- 面板重启功能 HOT 1
- 百度分享使用正确超级会员BDUSS,文件仍然显示errno":9019,"errmsg":"needverify" HOT 3
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 alist.