pep8
rename middleware method to avoid multiple calls
Merge pull request #3606 from dimagi/prbac

rename middleware method to avoid multiple calls