From e14966c48837e521bce793d0b7e3a79e03543367 Mon Sep 17 00:00:00 2001 From: Derf Null Date: Sun, 25 Jun 2023 11:09:51 +0200 Subject: Users->add: correctly specify default visibility --- lib/Travelynx/Model/Users.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Travelynx/Model/Users.pm b/lib/Travelynx/Model/Users.pm index 95cab8f..e465ee1 100644 --- a/lib/Travelynx/Model/Users.pm +++ b/lib/Travelynx/Model/Users.pm @@ -484,9 +484,10 @@ sub add { my $res = $db->insert( 'users', { - name => $user_name, - status => 0, - public_level => $visibility_atoi{unlisted}, + name => $user_name, + status => 0, + public_level => $visibility_atoi{unlisted} + | ( $visibility_atoi{unlisted} << 8 ), email => $email, password => $password, registered_at => $now, -- cgit v1.2.3