mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-20 16:56:02 +00:00
Fix privileges insert.
This commit is contained in:
parent
abdfad3193
commit
466bffa73d
@ -124,7 +124,7 @@ function UpdateUserFromExternal( &$usr ) {
|
||||
if ( isset($usr->active) && ($usr->active === 'f' || $usr->active === false) ) return false;
|
||||
|
||||
if ( $type == 'INSERT' ) {
|
||||
$qry = new AwlQuery( 'INSERT INTO principal( type_id, user_no, displayname, default_privileges) SELECT 1, user_no, fullname, :privs::BIT(24) FROM usr WHERE username=:username',
|
||||
$qry = new AwlQuery( 'INSERT INTO principal( type_id, user_no, displayname, default_privileges) SELECT 1, user_no, fullname, :privs::INT::BIT(24) FROM usr WHERE username=:username',
|
||||
array( ':privs' => privilege_to_bits($c->default_privileges), ':username' => $usr->username) );
|
||||
$qry->Exec('Login',__LINE__,__FILE__);
|
||||
CreateHomeCalendar($usr->username);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user