Delete assigned roles

This commit is contained in:
Jan Kvetina 2021-12-24 11:40:59 +01:00
parent d0d374dc75
commit e383ae2149

View File

@ -45,6 +45,10 @@ COMPOUND TRIGGER
--
curr_event_id := app.log_event('ROLE_ID_CHANGED');
END IF;
ELSE
DELETE FROM user_roles u
WHERE u.app_id = :OLD.app_id
AND u.role_id = :OLD.role_id;
END IF;
EXCEPTION
WHEN app.app_exception THEN