Add app before filter for access control