libraries/helpers.rb
# Similar checks as the current_user method, but with boolean output
Similar checks as the current_user method, but with boolean output
Similar checks as the current_user method but with boolean output
def valid_current_user
  if uid_user == 'root'
    false
  elsif /^_\w*\z/.match(uid_user)
    false
  else
    true
  end
end
def valid_current_user if uid_user == 'root' false elsif / ^_ \w * \z / . match ( uid_user ) false else true end end
Similar checks as the current_user method, but with boolean output
Similar checks as the current_user method but with boolean output