[WIP] Blacklist command #14
No reviewers
레이블
마일스톤 없음
담당자 없음
참여자 2명
알림
마감일
마감일이 설정되지 않았습니다.
의존성
No dependencies set.
Reference: adphi/occweb#14
불러오는 중...
Reference in New Issue
No description provided.
Delete Branch "CptainObvious/occweb:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.