Skip to content

Commit ecc8a39

Browse files
committed
(refs #10)Fix authentication condition
1 parent 0ea5c43 commit ecc8a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/Plugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class GistRepositoryFilter extends GitRepositoryFilter with AccountService {
7171
userName <- userName
7272
account <- getAccountByUserName(userName)
7373
} yield
74-
path.startsWith(userName + "/") || account.isAdmin
74+
path.startsWith("/" + userName + "/") || account.isAdmin
7575
).getOrElse(false)
7676
} else true
7777
}

0 commit comments

Comments
 (0)