Added documentation for if/unless options of #check_permissions.