From 402a5597f5d095b059e8ee1a4a8b653c3187ff93 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 8 Dec 2019 10:32:22 +0100 Subject: Account: unset public_comment when public_status is disabled --- lib/Travelynx/Controller/Account.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3