def has_permission?(*levels)
      if levels.all? { |level| permissions.include? level.to_sym }
        return true
      else
        return false
      end
    end
def has_permission?(*levels)
      if levels.all? { |level| permissions.include? level.to_sym }
        return true
      else
        return false
      end
    end
Returns true if the object has all the permissions specified by +levels+