Skip to content

Modify Policy.Organization to allow creation via invite #1230

@begedin

Description

@begedin

Currently, Policy.Organization.create only allows creation by admins. We need an additional clause to allow creation via invite.

  • create?/1 needs to become create?/2 and accept params as the second argument
  • new create?/2 clause needs to check if OrganizationInvite exists based on invite_token parameter
  • tests need to be expanded to check for this clause

Estimates

~1 hour

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions