Fixed no permission messages being output when not supposed to.
Thanks to clusidc for reporting.