Skip to content
Snippets Groups Projects
Closed Unconfirmed employee rights error
  • View options
  • Unconfirmed employee rights error

    • View options
  • Closed created

    Sentry Issue: PROJECT-FORUM-4A

    Unconfirmed employee rights use an or in a location where this is not supported. Or can only be used if the joins are equivalent on both sides of the or, which is not the case between ".recurrent" and non recurrent in the current setup. Should be slightly rewritten to joins with course edition first to prevent the structural incompatibility.

    ArgumentError: Relation passed to #or must be structurally compatible. Incompatible values: [:joins]
      app/models/ability.rb:147:in `unconfirmed_employee_rights'
        .or(Project.with_role(:client, user).active)
      app/models/ability.rb:135:in `all_abilities'
        unconfirmed_employee_rights(user) if user.has_role?(:unconfirmed_employee, :any)
      app/models/ability.rb:40:in `initialize'
        all_abilities(user)
      app/views/layouts/_navigation_items.html.erb:9:
        <% if can? :index, Course %>
      app/views/layouts/_navigation.html.erb:17:
        <%= render 'layouts/navigation_items' %>
    ...
    (166 additional frame(s) were not displayed)
    
    ActionView::Template::Error: Relation passed to #or must be structurally compatible. Incompatible values: [:joins]

    Attributes

    Assignees

    None

    Labels

    Milestone

    None

    Dates

    Start: None

    Due: None

    Time tracking

    No estimate or time spent

    Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first