1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 17:14:27 +00:00
gitea/routers/api/v1/repo
Paweł Bogusławski 839daa85aa
Added option to disable migrations (#13114)
* Added option to disable migrations

This patch introduces DISABLE_MIGRATIONS parameter in [repository]
section of app.ini (by default set to false). If set to true
it blocks access to repository migration feature.

This mod hides also local repo import option in user editor if
local repo importing or migrations is disabled.

* Alter Example config

DISABLE_MIGRATIONS set to false in example config to
match its default value.

* HTTP error 403 instead of 500 on denied access to migration

* Parameter DISABLE_MIGRATIONS exposed via API

Fixes: 04b04cf854
Author-Change-Id: IB#1105130
2020-12-21 15:39:41 +01:00
..
blob.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
branch.go Add block on official review requests branch protection (#13705) 2020-11-28 21:30:46 +02:00
collaborators.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
commits.go Not using "ctx.ServerError" in api (#12907) 2020-09-20 21:20:14 +01:00
file.go Add better Swagger description and a example for GetArchive (#12743) 2020-09-06 12:23:47 -04:00
fork.go Move Repo APIFormat to convert package (#13787) 2020-12-02 16:38:30 -05:00
git_hook.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
git_ref.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
hook_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
hook.go Move webhook type from int to string (#13664) 2020-12-08 11:41:14 +01:00
issue_comment.go API: Fix GetQueryBeforeSince (#13559) 2020-11-14 14:05:40 +00:00
issue_label.go Add Organization Wide Labels (#10814) 2020-04-01 01:14:46 -03:00
issue_reaction.go Issue comment reactions should also check pull type (#13349) 2020-10-29 20:48:07 +08:00
issue_stopwatch.go Refactor: move Commit To APIFormat Code & Lot of StopWatch related things (#12729) 2020-09-18 20:09:26 +08:00
issue_subscription.go [Refactor] Move APIFormat functions into convert package (#12856) 2020-10-17 00:23:08 -04:00
issue_tracked_time.go API: Fix GetQueryBeforeSince (#13559) 2020-11-14 14:05:40 +00:00
issue.go [API] Add ref to create/edit issue options & deprecated assignee (#13992) 2020-12-15 19:38:10 +01:00
key.go Move Repo APIFormat to convert package (#13787) 2020-12-02 16:38:30 -05:00
label.go Not using "ctx.ServerError" in api (#12907) 2020-09-20 21:20:14 +01:00
language.go Add language statistics API endpoint (#11737) 2020-06-07 14:48:41 +03:00
main_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
migrate.go Added option to disable migrations (#13114) 2020-12-21 15:39:41 +01:00
milestone.go Not using "ctx.ServerError" in api (#12907) 2020-09-20 21:20:14 +01:00
mirror.go Refactor api repo dir (#10048) 2020-01-29 13:55:23 +08:00
pull_review.go Add review request api (#11355) 2020-10-20 14:18:25 -04:00
pull.go Deny wrong pull (#13308) 2020-10-26 11:05:27 +02:00
release_attachment.go [Refactor] Move APIFormat functions into convert package (#12856) 2020-10-17 00:23:08 -04:00
release_tags.go Delete tag API (#13358) 2020-10-30 20:56:34 -05:00
release.go [Refactor] Move APIFormat functions into convert package (#12856) 2020-10-17 00:23:08 -04:00
repo_test.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 2019-05-30 11:09:05 -04:00
repo.go Move Repo APIFormat to convert package (#13787) 2020-12-02 16:38:30 -05:00
star.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
status.go [Refactor] CombinedStatus and CommitStatus related functions & structs (#14026) 2020-12-18 11:33:32 +08:00
subscriber.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
tag.go [API] enable paggination for ListRepoTags (#10454) 2020-02-25 14:07:07 -05:00
topic.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
transfer.go Move Repo APIFormat to convert package (#13787) 2020-12-02 16:38:30 -05:00
tree.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00