[WIP] Blacklist command #14
Sans évaluateur
Labels
Sans labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
Sans jalon
Sans assignation
2 participants
Notifications
Échéance
Aucune échéance n'a été définie.
Dépendances
Aucune dépendance définie.
Référence : adphi/occweb#14
Chargement…
Référencer dans un nouveau ticket
Sans contenu.
Supprimer la branche "CptainObvious/occweb:master"
La suppression d’une branche est permanente. Bien qu’une branche supprimée puisse temporairement subsister, elle NE PEUT PAS être facilement restaurée. Continuer ?
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.Étape 1:
Depuis le dépôt de votre projet, sélectionnez une nouvelle branche et testez les modifications.Étape 2:
Fusionner les modifications et mettre à jour sur Gitea.