Invert ifs to reduce nesting. Print what permission is missing.