Skip to content

Commit bce383b

Browse files
committed
Change secret snippets to be visible if URL is known
1 parent fbe6c6d commit bce383b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/gitbucket/gist/controller/GistController.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ trait GistControllerBase extends ControllerBase {
369369
val originUserName = gist.originUserName.getOrElse(userName)
370370
val originRepoName = gist.originRepositoryName.getOrElse(repoName)
371371

372-
if(!gist.isPrivate || context.loginAccount.exists(x => x.isAdmin || x.userName == userName)){
372+
//if(!gist.isPrivate || context.loginAccount.exists(x => x.isAdmin || x.userName == userName)){
373373
val files: Seq[(String, String)] = JGitUtil.getFileList(git, revision, ".").map { file =>
374374
file.name -> StringUtil.convertFromByteArray(JGitUtil.getContentFromId(git, file.id, true).get)
375375
}
@@ -381,7 +381,7 @@ trait GistControllerBase extends ControllerBase {
381381
files,
382382
isEditable(userName)
383383
)
384-
} else Unauthorized
384+
//} else Unauthorized
385385
}
386386
} else NotFound
387387
}

0 commit comments

Comments
 (0)