projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add pages that let the user bookmark or unbookmark a post.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
LogoutPage.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/LogoutPage.java
b/src/main/java/net/pterodactylus/sone/web/LogoutPage.java
index
50266bd
..
f388368
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/LogoutPage.java
+++ b/
src/main/java/net/pterodactylus/sone/web/LogoutPage.java
@@
-57,7
+57,7
@@
public class LogoutPage extends SoneTemplatePage {
*/
@Override
public boolean isEnabled(ToadletContext toadletContext) {
*/
@Override
public boolean isEnabled(ToadletContext toadletContext) {
- return
getCurrentSone(toadletContext) != null
;
+ return
(getCurrentSone(toadletContext, false) != null) && (webInterface.getCore().getLocalSones().size() != 1)
;
}
}
}
}