This article mentions how we can modify the masterpage html file in SP2013.
However, we are deploying a '.master' file and setting the masterpage via VS package. What is the way that we can perform security trimming on a master page to hide ribbon based on user permission? (we can open the VS project and make changes to this '.master' file)
I have found article that does this on SP2010, however is it good practice to use it on SP2013? How can we hide the ribbon from users with 'read only' permission?