mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-06-14 22:17:34 +08:00
Rename conf option to YAML_SUBMIT_ALLOWED
This commit is contained in:
@@ -98,7 +98,7 @@ class ModuleBuildAPI(MethodView):
|
||||
raise Unauthorized("%s is not in any of %r, only %r" % (
|
||||
username, conf.allowed_groups, groups))
|
||||
|
||||
if "multipart/form-data" in request.headers.get("Content-Type") and conf.submitting_yaml:
|
||||
if "multipart/form-data" in request.headers.get("Content-Type") and conf.yaml_submit_allowed:
|
||||
module = self.post_file(username)
|
||||
else:
|
||||
module = self.post_scm(username)
|
||||
|
||||
Reference in New Issue
Block a user