Add IsSpecialFeatureAllowed(id int) to TCData

This commit is contained in:
Thomas LAY
2020-04-06 13:30:03 +02:00
parent 2ad493c354
commit 66ee75f78c

View File

@@ -16,6 +16,11 @@ type TCData struct {
PublisherTC *PublisherTC 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 // Returns true if user has given consent to purpose id
func (t *TCData) IsPurposeAllowed(id int) bool { func (t *TCData) IsPurposeAllowed(id int) bool {
return t.CoreString.IsPurposeAllowed(id) return t.CoreString.IsPurposeAllowed(id)