From 66ee75f78c326f75d3600ef11643ae6f2ec1f85c Mon Sep 17 00:00:00 2001 From: Thomas LAY Date: Mon, 6 Apr 2020 13:30:03 +0200 Subject: [PATCH] Add IsSpecialFeatureAllowed(id int) to TCData --- tcdata.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tcdata.go b/tcdata.go index 5c25b08..0e363eb 100644 --- a/tcdata.go +++ b/tcdata.go @@ -16,6 +16,11 @@ type TCData struct { PublisherTC *PublisherTC } +// Returns true if user has given consent to special feature id +func (t *TCData) IsSpecialFeatureAllowed(id int) bool { + return t.CoreString.IsSpecialFeatureAllowed(id) +} + // Returns true if user has given consent to purpose id func (t *TCData) IsPurposeAllowed(id int) bool { return t.CoreString.IsPurposeAllowed(id)