mirror of
https://github.com/System-End/identity-vault.git
synced 2026-04-19 22:05:07 +00:00
* temp commit * lemme do it * nope * let them do it too * collab invite model * better visuals on progman * waow * danger will robinson * show apps on backend & link user * first pass on app auditability! * no lastnaming admins * async frame that shit! * waugh * can't add yourself * fix reinvite * sidebar badging * lint... * gotta be on the app! * let that get rescued by applcon * already in revoke_all_authorizations * woag * the routes you grew up with no longer exist * what would the UI for that even be? * sorch * much better! * frickin validations
25 lines
557 B
Ruby
25 lines
557 B
Ruby
FactoryBot.define do
|
|
factory :backend_user, class: "Backend::User" do
|
|
sequence(:username) { |n| "admin#{n}" }
|
|
active { true }
|
|
super_admin { false }
|
|
program_manager { false }
|
|
manual_document_verifier { false }
|
|
human_endorser { false }
|
|
all_fields_access { false }
|
|
can_break_glass { false }
|
|
association :identity
|
|
|
|
trait :super_admin do
|
|
super_admin { true }
|
|
end
|
|
|
|
trait :program_manager do
|
|
program_manager { true }
|
|
end
|
|
|
|
trait :mdv do
|
|
manual_document_verifier { true }
|
|
end
|
|
end
|
|
end
|