mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-29 18:26:05 +00:00
Fix the way default privileges are set for the SQL.
This commit is contained in:
parent
c41f4071e4
commit
c4f8ec2b15
@ -497,7 +497,7 @@ class Principal {
|
||||
if ( !isset($field_values->{'type_id'}) && $inserting )
|
||||
$field_values->{'type_id'} = 1; // Default to 'person'
|
||||
if ( !isset($field_values->{'default_privileges'}) && $inserting )
|
||||
$field_values->{'default_privileges'} = decbin(privilege_to_bits($c->default_privileges));
|
||||
$field_values->{'default_privileges'} = sprintf('%024s',decbin(privilege_to_bits($c->default_privileges)));
|
||||
|
||||
|
||||
$sql = '';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user