Added a few more specific permissions checks.