mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-06-10 05:10:19 +00:00
Add support for listing inactive principals.
This commit is contained in:
parent
544a3949fc
commit
3c90dc23ed
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
param_to_global( 'principal_type', 'int', 'type' );
|
||||
param_to_global( 'principal_active', '([tf])', 'active' );
|
||||
|
||||
$browser = new Browser(translate('Calendar Principals'));
|
||||
if ( isset($principal_type) ) {
|
||||
@ -23,9 +24,13 @@ if ( !isset($principal_type) || $principal_type == 3 ) {
|
||||
}
|
||||
|
||||
$browser->SetOrdering( 'username', 'A' );
|
||||
|
||||
$browser->SetJoins( "dav_principal " );
|
||||
$browser->SetWhere( 'user_active' );
|
||||
|
||||
if ( isset($principal_active) && $principal_active == 'f' )
|
||||
$browser->SetWhere( 'NOT user_active' );
|
||||
else
|
||||
$browser->SetWhere( 'user_active' );
|
||||
|
||||
if ( isset($principal_type) ) {
|
||||
$browser->AndWhere( 'type_id = '.$principal_type );
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user