Skip version check if api is restricted #213
Labels
No Label
⌚ Major-release
⌚ Minor-release
⚔️ Wontfix
⚙️ CI
⛏️ Breaking
✨ Duplicate
❌ Invalid
❓ Question
❤️ Support
➡️ Frontport
➡️ Needs-frontport
🔙 Backport
💭 Brainstorming
🐛 Bug
🔭 Cannot-reproduce
🧺 Cleanup
🧾 Confirmed
💬 Discussion
📄 Documentation
🎯 Enhancement
🩹 External-dependecy
📱 F-droid
🎉 Feature
👋 Good-first-issue
🤾 Google-play
🔙 Has-backport
🚀 Improvement
🚨 Investigate
🌠 Long-term
🔙 Needs-backport
🧺 Needs-cleanup
📡 Needs-feedback
📈 Performance
📌 Priority-critical
📌 Priority-high
📍 Priority-low
📍 Priority-medium
🥑 Ready
🪒 Refactor
🔙 Regression
📸 Release
🔒 Security
💡 Suggestion
🧪 Testing
🌐 Translation
💻 UI/UX
🪜 Upstream
🟦 Website
🙇♂️ Needs-help
🛰️ API-dependency
🛡️ Blocked
🏗️ Build
🗒️ Changelog
🗄️ Repository
🗓️ Summary
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitnex/GitNex#213
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Created By: @Unpublished
Description - describe the bug / feature / suggestion in brief :
After pressing login, the button keeps saying "Processing..."
Expected behaviour - describe what should be the expected result :
I can login :)
GitNex version :
master
Possible solution: https://gitea.com/Unpublished/GitNex/src/branch/allowRestrictedApi
Thank you for opening the issue.
You mean if the version api is restricted?
If yes, then your proposed solution will work.
Created By: @Unpublished
I think the complete api is restricted until login because of
REQUIRE_SIGNIN_VIEW
inapp.ini
.Okay, I'll open a PR :)
@Unpublished by default gitea
GET /version
api NOT need a login!@Unpublished so after adding your solution, you can login and everything works?
Is your server public? can share the URL with us. Otherwise you can join the discord chat if you have an account there.
https://discord.gg/kuQZ6D
Created By: @Unpublished
Right, because
REQUIRE_SIGNIN_VIEW
defaults to false.Yep, everything works with this solution.
No it's local, I hope one of you has a server where he can set
REQUIRE_SIGNIN_VIEW
to true temporarily. If you need it to verify my PR.It's fine as this PR is not going to break anything. It will still work.
I did not know that
REQUIRE_SIGNIN_VIEW
also restrict version api. Good to know if thats the case.