Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `groups' for #<Sipity::Agent:0x007fbe26031678> #1086

Open
straleyb opened this issue Nov 8, 2016 · 0 comments
Open

undefined method `groups' for #<Sipity::Agent:0x007fbe26031678> #1086

straleyb opened this issue Nov 8, 2016 · 0 comments

Comments

@straleyb
Copy link
Contributor

straleyb commented Nov 8, 2016

The documentation was a lie... https://github.com/projecthydra/curation_concerns/blob/workflow/app/services/curation_concerns/workflow/permission_query.rb#L153

Its passing an agent rather than a user.

NoMethodError - undefined method `groups' for #<Sipity::Agent:0x007fbe26031678>:
  activemodel (5.0.0.1) lib/active_model/attribute_methods.rb:433:in `method_missing'
  /Users/straleyb/Curation/curation_concerns/app/services/curation_concerns/workflow/permission_query.rb:159:in `scope_processing_agents_for'
  /Users/straleyb/Curation/curation_concerns/app/services/curation_concerns/workflow/permission_query.rb:306:in `scope_processing_workflow_roles_for_user_and_workflow'
  /Users/straleyb/Curation/curation_concerns/app/services/curation_concerns/workflow/permission_query.rb:285:in `scope_processing_workflow_roles_for_user_and_entity'
  /Users/straleyb/Curation/curation_concerns/app/services/curation_concerns/workflow/permission_query.rb:376:in `scope_permitted_entity_workflow_state_actions'
  /Users/straleyb/Curation/curation_concerns/app/services/curation_concerns/workflow/permission_query.rb:38:in `scope_permitted_workflow_actions_available_for_current_state'
  /Users/straleyb/Curation/curation_concerns/app/services/curation_concerns/workflow/permission_query.rb:143:in `authorized_for_processing?'
  /Users/straleyb/Curation/curation_concerns/app/forms/curation_concerns/forms/workflow_action_form.rb:41:in `authorized_for_processing'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants