You can use this test for any user that does no have permissions and remove the tests from lines 130, 143.