mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-13 08:00:15 +00:00
Since we haven't read the record yet, we can't refer to it's fields.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
parent
d615da9c55
commit
0041a1e331
@ -74,7 +74,7 @@ function handle_subaction( $subaction ) {
|
||||
dbg_error_log('admin-principal-edit',':handle_action: Deleting principal %d', $id );
|
||||
if ( $session->AllowedTo('Admin') ) {
|
||||
if ( isset($id) && $id > 1 && $session->CheckConfirmationHash('GET', 'confirm') ) {
|
||||
dbg_error_log('admin-principal-edit',':handle_action: Allowed to delete principal %d -%s', $id, $editor->Value('username') );
|
||||
dbg_error_log('admin-principal-edit',':handle_action: Allowed to delete principal %d -%s', $id );
|
||||
$qry = new AwlQuery('DELETE FROM dav_principal WHERE principal_id=?', $id );
|
||||
if ( $qry->Exec() ) {
|
||||
$c->messages[] = i18n('Principal deleted');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user