From 09a4f1ce0b08a7c5f69728fa4911184d4a9b6be2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 1 Mar 2023 22:02:48 +0100 Subject: User->add: set default privacy level to 'private' --- lib/Travelynx/Model/Users.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Travelynx/Model') diff --git a/lib/Travelynx/Model/Users.pm b/lib/Travelynx/Model/Users.pm index 63cc261..4124e7b 100644 --- a/lib/Travelynx/Model/Users.pm +++ b/lib/Travelynx/Model/Users.pm @@ -437,7 +437,7 @@ sub add { { name => $user_name, status => 0, - public_level => 0, + public_level => $visibility_atoi{private}, email => $email, password => $password, registered_at => $now, -- cgit v1.2.3