Last post Feb 09, 2017 06:58 AM by Chris Zhao
Feb 08, 2017 09:08 PM|HockeyFan|LINK
I have need of, based on security, to nullify (or empty) the values of certain fields.
We have one type of user that will access our OData source, and in that case, when we query, we want the field value to be null for a couple of the columns. Otherwise, it's the exact same query.
How is the best way to accomplish this.
Feb 09, 2017 06:58 AM|Chris Zhao|LINK
You can access the ApiController.User property inside the controller method to retrieve the current principle and take your decision depending the user's role.
public HttpResponseMessage Get()