diff options
author | Derf Null <derf@finalrewind.org> | 2023-06-25 11:09:51 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-06-25 11:09:51 +0200 |
commit | e14966c48837e521bce793d0b7e3a79e03543367 (patch) | |
tree | ac1dc8e134ab938bed93a7c1e9207cc203949cb0 /lib/Travelynx/Model | |
parent | 4845a03f07fc83d452ff2347f0ec159f71b19497 (diff) |
Users->add: correctly specify default visibility
Diffstat (limited to 'lib/Travelynx/Model')
-rw-r--r-- | lib/Travelynx/Model/Users.pm | 7 |
1 files 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, |