projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extract access authorizer and add unit test
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
fcp
/
DeleteReplyCommand.java
diff --git
a/src/main/java/net/pterodactylus/sone/fcp/DeleteReplyCommand.java
b/src/main/java/net/pterodactylus/sone/fcp/DeleteReplyCommand.java
index
e9c0926
..
6a018fa
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/fcp/DeleteReplyCommand.java
+++ b/
src/main/java/net/pterodactylus/sone/fcp/DeleteReplyCommand.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - DeleteReplyCommand.java - Copyright © 2011–201
3
David Roden
+ * Sone - DeleteReplyCommand.java - Copyright © 2011–201
6
David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-51,6
+51,7
@@
public class DeleteReplyCommand extends AbstractSoneCommand {
if (!reply.getSone().isLocal()) {
return new ErrorResponse(401, "Not allowed.");
}
if (!reply.getSone().isLocal()) {
return new ErrorResponse(401, "Not allowed.");
}
+ getCore().deleteReply(reply);
return new Response("ReplyDeleted", new SimpleFieldSetBuilder().get());
}
return new Response("ReplyDeleted", new SimpleFieldSetBuilder().get());
}