PZEE#79894 Aparte AD groep + rechten
svn path=/Customer/trunk/; revision=63294
This commit is contained in:
@@ -151,6 +151,17 @@ IS
|
||||
FROM fac_imp_perslid i
|
||||
WHERE UPPER (i.prs_perslid_email) =
|
||||
UPPER (p.prs_perslid_email));
|
||||
|
||||
--- #79894: Medewerkers met een afdelingscode PS, BCL of GS niet in autorisatiegroep _default maar in 'Statenlid, Burgercom., gedeput'.
|
||||
CURSOR c_auth IS
|
||||
SELECT i.prs_perslid_key, 581 as fac_groep_key
|
||||
FROM fac_imp_perslid i
|
||||
WHERE i.prs_afdeling_naam IN ('PS', 'BCL', 'GS')
|
||||
AND prs_perslid_key IS NOT NULL
|
||||
AND prs_perslid_key NOT IN (SELECT prs_perslid_key
|
||||
FROM fac_gebruikersgroep ---Statenlid, Burgercom., gedeput'.
|
||||
WHERE fac_groep_key = 581);
|
||||
|
||||
BEGIN
|
||||
-- generic update
|
||||
SELECT COUNT (*) INTO v_count FROM fac_imp_perslid;
|
||||
@@ -182,6 +193,19 @@ BEGIN
|
||||
END;
|
||||
END LOOP;
|
||||
|
||||
FOR rec IN c_auth
|
||||
LOOP
|
||||
BEGIN
|
||||
INSERT INTO FAC_GEBRUIKERSGROEP (prs_perslid_key, fac_groep_key)
|
||||
VALUES (rec.prs_perslid_key, rec.fac_groep_key);
|
||||
|
||||
DELETE FAC_GEBRUIKERSGROEP
|
||||
WHERE prs_perslid_key = rec.prs_perslid_key
|
||||
AND fac_groep_key = 1;
|
||||
|
||||
END;
|
||||
END LOOP;
|
||||
|
||||
--- En dan zorgen we ook even dat alle mandaten goed staan voor eventuele nieuwe personen
|
||||
pzee.prs_mandaten;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user