FSN#51441 ook profiel wissen

svn path=/Database/trunk/; revision=36176
This commit is contained in:
Peter Feij
2017-11-30 19:48:32 +00:00
parent 7e4e3e5236
commit 054b75d9d3
2 changed files with 11 additions and 3 deletions

View File

@@ -208,11 +208,11 @@ BEGIN
UPDATE prs_contactpersoon
SET prs_perslid_key = NULL
WHERE prs_perslid_key = :old.prs_perslid_key;
-- Verwijder vervangingsregistraties heen en terug
DELETE FROM prs_collega
DELETE FROM prs_collega
WHERE prs_perslid_key = :old.prs_perslid_key OR prs_perslid_key_alt = :old.prs_perslid_key;
BEGIN
-- Pak mijn autorisaties af
DELETE FROM FAC_GEBRUIKERSGROEP WHERE PRS_PERSLID_KEY = :old.prs_perslid_key;
@@ -242,6 +242,8 @@ BEGIN
:new.prs_perslid_wachtwoord_hash := NULL;
:new.prs_perslid_wachtwoord_exp := NULL;
:new.prs_perslid_otpsecret := NULL;
-- Wis profiel (dat kan anders nooit opgeruimd worden)
:new.fac_profiel_key := NULL;
END IF;
IF :new.prs_perslid_oslogin IS NULL AND :old.prs_perslid_oslogin IS NOT NULL