We need $privilege_names in the list of globals.

Closes #250. Thank you to Laurent Hoareau and Jos Alsters.
This commit is contained in:
Andrew Ruthven 2021-09-19 02:56:19 +12:00
parent c5cbd75be4
commit c26ad777a2

View File

@ -179,7 +179,7 @@ function handle_subaction( $subaction ) {
}
function principal_editor() {
global $c, $id, $can_write_principal, $session;
global $c, $id, $can_write_principal, $session, $privilege_names;
$editor = new Editor(translate('Principal'), 'dav_principal');
$editor->SetLookup( 'date_format_type', "SELECT 'E', 'European' UNION SELECT 'U', 'US Format' UNION SELECT 'I', 'ISO Format'" );