openSUSE/osem

View on GitHub
app/controllers/admin/base_controller.rb

Summary

Maintainability
A
40 mins
Test Coverage

Consider simplifying this complex logical expression.
Open

      unless (current_user.has_cached_role? :organizer, :any) || (current_user.has_cached_role? :cfp, :any) ||
             (current_user.has_cached_role? :info_desk, :any) || (current_user.has_cached_role? :volunteers_coordinator, :any) ||
             (current_user.has_cached_role? :track_organizer, :any) || current_user.is_admin
        raise CanCan::AccessDenied.new('You are not authorized to access this page.')
      end
Severity: Major
Found in app/controllers/admin/base_controller.rb - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status