Security context fix.
Cancel commit #6cc1309, close JIRA ticket #TMPSTGSQL-146