Add OAuth scopes
https://github.com/foodcoops/foodsoft/issues/582#issuecomment-442513237
This commit is contained in:
parent
02f1940694
commit
e9be38b3e9
12 changed files with 162 additions and 32 deletions
|
|
@ -21,6 +21,14 @@ FactoryBot.define do
|
|||
create :ordergroup, user_ids: [user.id]
|
||||
end
|
||||
end
|
||||
|
||||
[:ordergroup, :finance, :invoices, :article_meta, :suppliers, :pickups, :orders].each do |role|
|
||||
trait "role_#{role}".to_sym do
|
||||
after :create do |user, evaluator|
|
||||
create :workgroup, "role_#{role}" => true, user_ids: [user.id]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
factory :group do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue