Removed mode checks before permission testing.