Skip to content

Commit ae5e03f

Browse files
committed
Changed API permission, compact API fully working
1 parent 8c4ab15 commit ae5e03f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • pages/api/v1/repositories/[slug]/compact

pages/api/v1/repositories/[slug]/compact/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default async function handler(
3232
if (!permissions) {
3333
return ApiResponse.unauthorized(res, 'Invalid API key');
3434
}
35-
if (!permissions.read) {
35+
if (!permissions.update) {
3636
return ApiResponse.forbidden(res, 'Insufficient permissions');
3737
}
3838
}

0 commit comments

Comments
 (0)