Permission for private file to anonymous
I have an ad content type, with a file field that is in a private directory when saving the node.
Ads and their files are only accesible for authenticated users.
I wish I could allow anonymous users to see ads and their files that are promoted.
I use content_access module 
I want programmaticly, change acces control foreach ads who is promoted and I don’t how to achieve that.
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.