summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-06-25 11:09:51 +0200
committerDerf Null <derf@finalrewind.org>2023-06-25 11:09:51 +0200
commite14966c48837e521bce793d0b7e3a79e03543367 (patch)
treeac1dc8e134ab938bed93a7c1e9207cc203949cb0 /lib
parent4845a03f07fc83d452ff2347f0ec159f71b19497 (diff)
Users->add: correctly specify default visibility
Diffstat (limited to 'lib')
-rw-r--r--lib/Travelynx/Model/Users.pm7
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,