[WIP] Blacklist command #14
无审核者
标签
未选择里程碑
未指派成员
2 名参与者
通知
到期时间
未设置到期时间。
依赖工单
没有设置依赖项。
参考:adphi/occweb#14
正在加载...
在新工单中引用
没有提供说明。
删除分支 CptainObvious/occweb:master
删除分支是永久的。虽然已删除的分支在实际被删除前有可能会短时间存在,但这在大多数情况下无法撤销。是否继续?
Implement a blacklist with command that we want to prevent being run from occweb like
maintenance mode:on
Return a 403 forbidden with a json response
The blacklisted command is not correct (see occ docs):
maintenance:mode --on
.I would change the error message to something more meaningful as "command not supported in occweb" with maybe a link to the docs.
In some cases, I think it can be useful in the future to be able to bypass the blacklist with
--force
and-f
or a custom flag if not available.第一步:
从你的仓库中签出一个新的分支并测试变更。第二步:
合并变更并更新到 Gitea 上