(refs #115)Add TODO

This commit is contained in:
takezoe
2014-03-09 02:27:46 +09:00
parent c422b1c9a5
commit 525edbab80

View File

@@ -16,6 +16,7 @@ class PublicKeyAuthenticator(context: ServletContext) extends PublickeyAuthentic
override def authenticate(username: String, key: PublicKey, session: ServerSession): Boolean = {
Database(context) withTransaction {
// TODO Check permission to the repository here?
getPublicKeys(username).exists { sshKey =>
str2PublicKey(sshKey.publicKey) match {
case Some(publicKey) => key.equals(publicKey)