aboutsummaryrefslogtreecommitdiffstats
path: root/models/auth
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-07-26 10:53:31 +0800
committerGitHub <noreply@github.com>2023-07-26 02:53:31 +0000
commit915cdf8f87380bb6ea9cb518837726eb85c89fc7 (patch)
tree04aaf3b8d0b75b341902bac3dbbd37629d9089d5 /models/auth
parent9ed3700ad2b373b6fa22f50dbd31ca106e1f82bc (diff)
downloadgitea-915cdf8f87380bb6ea9cb518837726eb85c89fc7.tar.gz
gitea-915cdf8f87380bb6ea9cb518837726eb85c89fc7.zip
Remove "misc" scope check from public API endpoints (#26134)
Fix #26035
Diffstat (limited to 'models/auth')
-rw-r--r--models/auth/token_scope.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/auth/token_scope.go b/models/auth/token_scope.go
index 61e684ea27..fe57276700 100644
--- a/models/auth/token_scope.go
+++ b/models/auth/token_scope.go
@@ -16,7 +16,7 @@ type AccessTokenScopeCategory int
const (
AccessTokenScopeCategoryActivityPub = iota
AccessTokenScopeCategoryAdmin
- AccessTokenScopeCategoryMisc
+ AccessTokenScopeCategoryMisc // WARN: this is now just a placeholder, don't remove it which will change the following values
AccessTokenScopeCategoryNotification
AccessTokenScopeCategoryOrganization
AccessTokenScopeCategoryPackage