Users->add: correctly specify default visibility
This commit is contained in:
parent
4845a03f07
commit
e14966c488
1 changed files with 4 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue