Added code to detect feeds based on master user or logged in user