When $location.path contains variables (id or parameters), requiresLogin() can't return the `auth` status. Here we are using the regex provided by $route to test if a route match the $location.path. Then we retrieve the `auth` status or false if not found.
When $location.path contains variables (id or parameters),
requiresLogin() can't return the `auth` status.
Here we are using the regex provided by $route to test if a route match the $location.path.
Then we retrieve the `auth` status or false if not found.

akintolga/superdesk,petrjasek/superdesk,pavlovicnemanja92/superdesk,sjunaid/superdesk,petrjasek/superdesk-ntb,plamut/superdesk,mugurrus/superdesk,verifiedpixel/superdesk,petrjasek/superdesk-ntb,thnkloud9/superdesk,darconny/superdesk,ancafarcas/superdesk,mdhaman/superdesk-aap,superdesk/superdesk-ntb,hlmnrmr/superdesk,petrjasek/superdesk,marwoodandrew/superdesk,superdesk/superdesk-aap,amagdas/superdesk,verifiedpixel/superdesk,pavlovicnemanja/superdesk,ioanpocol/superdesk,fritzSF/superdesk,pavlovicnemanja92/superdesk,sivakuna-aap/superdesk,superdesk/superdesk,superdesk/superdesk,petrjasek/superdesk-ntb,fritzSF/superdesk,vied12/superdesk,superdesk/superdesk-ntb,superdesk/superdesk,superdesk/superdesk-ntb,verifiedpixel/superdesk,fritzSF/superdesk,petrjasek/superdesk,thnkloud9/superdesk,akintolga/superdesk,liveblog/superdesk,mdhaman/superdesk,ioanpocol/superdesk,sivakuna-aap/superdesk,marwoodandrew/superdesk,plamut/superdesk,akintolga/superdesk-aap,ioanpocol/superdesk-ntb,pavlovicnemanja92/superdesk,superdesk/superdesk-aap,akintolga/superdesk-aap,pavlovicnemanja/superdesk,amagdas/superdesk,liveblog/superdesk,mdhaman/superdesk-aap,vied12/superdesk,pavlovicnemanja92/superdesk,akintolga/superdesk,superdesk/superdesk-aap,ioanpocol/superdesk-ntb,mdhaman/superdesk-aap,marwoodandrew/superdesk-aap,ancafarcas/superdesk,pavlovicnemanja/superdesk,verifiedpixel/superdesk,ioanpocol/superdesk,akintolga/superdesk-aap,marwoodandrew/superdesk,mdhaman/superdesk,gbbr/superdesk,vied12/superdesk,verifiedpixel/superdesk,gbbr/superdesk,plamut/superdesk,petrjasek/superdesk,ancafarcas/superdesk,amagdas/superdesk,darconny/superdesk,marwoodandrew/superdesk-aap,pavlovicnemanja92/superdesk,fritzSF/superdesk,fritzSF/superdesk,vied12/superdesk,mugurrus/superdesk,pavlovicnemanja/superdesk,sivakuna-aap/superdesk,marwoodandrew/superdesk,akintolga/superdesk-aap,petrjasek/superdesk-ntb,Aca-jov/superdesk,marwoodandrew/superdesk-aap,marwoodandrew/superdesk,sjunaid/superdesk,akintolga/superdesk,marwoodandrew/superdesk-aap,liveblog/superdesk,vied12/superdesk,gbbr/superdesk,sivakuna-aap/superdesk,darconny/superdesk,amagdas/superdesk,mdhaman/superdesk,superdesk/superdesk-aap,plamut/superdesk,thnkloud9/superdesk,hlmnrmr/superdesk,plamut/superdesk,ioanpocol/superdesk-ntb,liveblog/superdesk,sivakuna-aap/superdesk,Aca-jov/superdesk,akintolga/superdesk,mugurrus/superdesk,liveblog/superdesk,mdhaman/superdesk-aap,Aca-jov/superdesk,superdesk/superdesk,superdesk/superdesk-ntb,sjunaid/superdesk,amagdas/superdesk,hlmnrmr/superdesk