Remove user from assigned roles

This commit is contained in:
Jan Kvetina 2021-12-25 23:04:49 +01:00
parent ab0049ef2a
commit a3495ffb11

View File

@ -44,6 +44,9 @@ COMPOUND TRIGGER
--
curr_event_id := app.log_event('USER_ID_CHANGED');
END IF;
ELSE
DELETE FROM user_roles r
WHERE r.user_id = :OLD.user_id;
END IF;
EXCEPTION
WHEN app.app_exception THEN