mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-05-07 18:16:16 +02:00
unprotect plugin-assets (#2825)
This commit is contained in:
@@ -32,6 +32,7 @@ trait PreProcessControllerBase extends ControllerBase {
|
||||
get(!context.settings.allowAnonymousAccess, context.loginAccount.isEmpty) {
|
||||
if (!context.currentPath.startsWith("/assets") && !context.currentPath.startsWith("/signin") &&
|
||||
!context.currentPath.startsWith("/register") && !context.currentPath.endsWith("/info/refs") &&
|
||||
!context.currentPath.startsWith("/plugin-assets") &&
|
||||
!PluginRegistry().getAnonymousAccessiblePaths().exists { path =>
|
||||
context.currentPath.startsWith(path)
|
||||
}) {
|
||||
|
||||
Reference in New Issue
Block a user