Skip to content
Snippets Groups Projects
Commit 402a5597 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Account: unset public_comment when public_status is disabled

parent 2bee9077
No related branches found
No related tags found
No related merge requests found
...@@ -221,7 +221,10 @@ sub privacy { ...@@ -221,7 +221,10 @@ sub privacy {
else { else {
$public_level &= ~0x02; $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; $public_level |= 0x04;
} }
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment