Views permission validation

Converting views to php and adding script to test user has the necessary
permissions to access
Merge branch 'master' of https://github.com/da1rren/Group-A