lib/chef/provider/user/dscl.rb
#
# Returns true if the user is locked, false otherwise.
#
Returns true if the user is locked, false otherwise.
Returns true if the user is locked false otherwise .
def locked?
          if @authentication_authority
            !!(@authentication_authority =~ /DisabledUser/ )
          else
            false
          end
        end
def locked? if @authentication_authority ! ! ( @authentication_authority =~ / DisabledUser / ) else false end end
Returns true if the user is locked, false otherwise.
Returns true if the user is locked false otherwise .