Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • Project Forum Project Forum
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 104
    • Issues 104
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 13
    • Merge requests 13
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • EIPEIP
  • Project ForumProject Forum
  • Project ForumProject Forum
  • Issues
  • #526
Closed
Open
Issue created Oct 20, 2022 by Otto Visser@owvisserOwner

Unconfirmed employee rights error

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]
Assignee
Assign to
Time tracking