mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
feat: refactor deployment config (#6347)
This commit is contained in:
@ -287,14 +287,14 @@ func (q *querier) InsertLicense(ctx context.Context, arg database.InsertLicenseP
|
||||
}
|
||||
|
||||
func (q *querier) InsertOrUpdateLogoURL(ctx context.Context, value string) error {
|
||||
if err := q.authorizeContext(ctx, rbac.ActionCreate, rbac.ResourceDeploymentConfig); err != nil {
|
||||
if err := q.authorizeContext(ctx, rbac.ActionCreate, rbac.ResourceDeploymentValues); err != nil {
|
||||
return err
|
||||
}
|
||||
return q.db.InsertOrUpdateLogoURL(ctx, value)
|
||||
}
|
||||
|
||||
func (q *querier) InsertOrUpdateServiceBanner(ctx context.Context, value string) error {
|
||||
if err := q.authorizeContext(ctx, rbac.ActionCreate, rbac.ResourceDeploymentConfig); err != nil {
|
||||
if err := q.authorizeContext(ctx, rbac.ActionCreate, rbac.ResourceDeploymentValues); err != nil {
|
||||
return err
|
||||
}
|
||||
return q.db.InsertOrUpdateServiceBanner(ctx, value)
|
||||
|
Reference in New Issue
Block a user