AyuntamientoMadrid/participacion

View on GitHub
app/helpers/users_helper.rb

Summary

Maintainability
A
1 hr
Test Coverage

Consider simplifying this complex logical expression.
Open

    unless namespace == "officing"
      user&.administrator? || user&.moderator? || user&.valuator? ||
        (user&.manager? && namespace != "management") || user&.poll_officer? || user&.sdg_manager?
    end
Severity: Major
Found in app/helpers/users_helper.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status