OR-743 Add the isManager fn and middleware
Merge pull request #498 in OR/rse from OR/rse-chamerling:OR-743 to master

* commit 'aa6afd35ad3df158d45c591a5e28b2a1907dafe5':
  OR-743 Add the isManager fn and middleware