feat(profile): persist candidate edits and enforce company access
This commit is contained in:
1 parent
3ab6bd91a3
commit
73c7caa225
67 files changed
+5286
-229
No files matched your search
@@ -20,6 +20,7 @@ type Handler struct {
|
||||
health *HealthHandler
|
||||
identity *IdentityHandler
|
||||
consent *ConsentHandler
|
||||
profile *ProfileHandler
|
||||
organization *OrganizationHandler
|
||||
problems *problem.Responder
|
||||
}
|
||||
@@ -39,6 +40,11 @@ func WithConsent(consent *ConsentHandler) HandlerOption {
|
||||
return func(handler *Handler) { handler.consent = consent }
|
||||
}
|
||||
|
||||
// WithProfile serves the candidate's private profile.
|
||||
func WithProfile(profile *ProfileHandler) HandlerOption {
|
||||
return func(handler *Handler) { handler.profile = profile }
|
||||
}
|
||||
|
||||
// WithOrganization serves company profiles and owner operations.
|
||||
func WithOrganization(organization *OrganizationHandler) HandlerOption {
|
||||
return func(handler *Handler) { handler.organization = organization }
|
||||
|
||||
Reference in new issue
Block a user