mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-27 02:54:27 +00:00
Ensure we still get active if we got a real boolean.
This commit is contained in:
parent
8bb9a45cbb
commit
4dcbcfadad
@ -128,7 +128,7 @@ function UpdateUserFromExternal( &$usr ) {
|
||||
/**
|
||||
* We disallow login by inactive users _after_ we have updated the local copy
|
||||
*/
|
||||
if ( isset($usr->active) && $usr->active == 'f' ) return false;
|
||||
if ( isset($usr->active) && ($usr->active === 'f' || $usr->active === false) ) return false;
|
||||
|
||||
if ( $type == 'INSERT' ) {
|
||||
CreateHomeCalendar($usr->username);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user