projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'next' into new-database-38
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
DeleteAlbumPage.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/DeleteAlbumPage.java
b/src/main/java/net/pterodactylus/sone/web/DeleteAlbumPage.java
index
2f2b766
..
e175870
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/DeleteAlbumPage.java
+++ b/
src/main/java/net/pterodactylus/sone/web/DeleteAlbumPage.java
@@
-54,7
+54,7
@@
public class DeleteAlbumPage extends SoneTemplatePage {
if (album == null) {
throw new RedirectException("invalid.html");
}
if (album == null) {
throw new RedirectException("invalid.html");
}
- if (!
webInterface.getCore().isLocalSone(album.getSone()
)) {
+ if (!
album.getSone().isLocal(
)) {
throw new RedirectException("noPermission.html");
}
if (request.getHttpRequest().isPartSet("abortDelete")) {
throw new RedirectException("noPermission.html");
}
if (request.getHttpRequest().isPartSet("abortDelete")) {