remove two of the four copies of the return statement
remove two more copies of the return statement
don't misrepresent errors as authorisation failures
no else after return
no else after return
remove one of the two copies of the return statement
remove duplicate line
Merge pull request #528 from mk270/dedupe-view/applications

Dedupe view/applications