summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Account.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-08 10:32:22 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-08 10:32:22 +0100
commit402a5597f5d095b059e8ee1a4a8b653c3187ff93 (patch)
tree91fa0afc61dd1c3fe7ad9b85ef4c1f43213de8e6 /lib/Travelynx/Controller/Account.pm
parent2bee9077baf30d2c5b1ace33879d9cd36df31220 (diff)
Account: unset public_comment when public_status is disabled
Diffstat (limited to 'lib/Travelynx/Controller/Account.pm')
-rw-r--r--lib/Travelynx/Controller/Account.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Travelynx/Controller/Account.pm b/lib/Travelynx/Controller/Account.pm
index cebe21a..39335b9 100644
--- a/lib/Travelynx/Controller/Account.pm
+++ b/lib/Travelynx/Controller/Account.pm
@@ -221,7 +221,10 @@ sub privacy {
else {
$public_level &= ~0x02;
}
- if ( $self->param('public_comment') ) {
+
+ # public comment with non-public status does not make sense
+ if ( $self->param('public_comment') and $self->param('public_status') )
+ {
$public_level |= 0x04;
}
else {