Skip to content

Commit 3fab3d2

Browse files
committed
(refs #10)Fix authentication condition to allow editing by administrators
1 parent e9a3db6 commit 3fab3d2

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
@@ -76,7 +76,7 @@ class GistRepositoryFilter extends GitRepositoryFilter with AccountService {
7676
account <- authenticate(settings, username, password)
7777
} yield {
7878
request.paths match {
79-
case Array(_, _, owner, _*) => owner == username
79+
case Array(_, _, owner, _*) => owner == username || account.isAdmin
8080
}
8181
}
8282

0 commit comments

Comments
 (0)