diff --git a/app/routers/gitea.py b/app/routers/gitea.py index 0ef718d..ed3ea8a 100644 --- a/app/routers/gitea.py +++ b/app/routers/gitea.py @@ -88,7 +88,7 @@ async def get_file(request: Request, owner: str, repo: str, path: str): async def save_file(request: Request, owner: str, repo: str): """Create or update a file in the repo.""" import json - gitea = _require_user_gitea(request) + gitea = _require_gitea(request) # admin token can write too try: body = await request.json() except Exception: @@ -111,7 +111,7 @@ async def save_file(request: Request, owner: str, repo: str): async def delete_file(request: Request, owner: str, repo: str): """Delete a file from the repo.""" import json - gitea = _require_user_gitea(request) + gitea = _require_gitea(request) # admin token can write too path = request.query_params.get("path", "") sha = request.query_params.get("sha", "") message = request.query_params.get("message", "Delete via FlowDeck") diff --git a/app/templates/gitea_workspace.html b/app/templates/gitea_workspace.html index f2c9753..4864baa 100644 --- a/app/templates/gitea_workspace.html +++ b/app/templates/gitea_workspace.html @@ -9,7 +9,7 @@