Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
338
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
23
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TransFem.org
Sharkey
Commits
47322b35
Unverified
Commit
47322b35
authored
4 years ago
by
MeiMei
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
APIの権限設定漏れを修正 (#6202)
* Fix: 権限設定漏れ * requireAdmin
parent
4c6d0386
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/server/api/endpoints/admin/get-table-stats.ts
+2
-1
2 additions, 1 deletion
src/server/api/endpoints/admin/get-table-stats.ts
src/server/api/endpoints/admin/server-info.ts
+2
-1
2 additions, 1 deletion
src/server/api/endpoints/admin/server-info.ts
with
4 additions
and
2 deletions
src/server/api/endpoints/admin/get-table-stats.ts
+
2
−
1
View file @
47322b35
...
...
@@ -2,7 +2,8 @@ import define from '../../define';
import
{
getConnection
}
from
'
typeorm
'
;
export
const
meta
=
{
requireCredential
:
false
as const
,
requireCredential
:
true
as const
,
requireAdmin
:
true
,
desc
:
{
'
en-US
'
:
'
Get table stats
'
...
...
This diff is collapsed.
Click to expand it.
src/server/api/endpoints/admin/server-info.ts
+
2
−
1
View file @
47322b35
...
...
@@ -5,7 +5,8 @@ import define from '../../define';
import
redis
from
'
../../../../db/redis
'
;
export
const
meta
=
{
requireCredential
:
false
as const
,
requireCredential
:
true
as const
,
requireAdmin
:
true
,
desc
:
{
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment