Skip to content

Commit

Permalink
typo fix (#880)
Browse files Browse the repository at this point in the history
Signed-off-by: Mayank Shah <[email protected]>
  • Loading branch information
mayankshah1607 authored Nov 29, 2024
1 parent b893bd6 commit a54e5db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/database_cluster_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (e *EverestServer) CreateDatabaseClusterBackup(ctx echo.Context, namespace
}
// User should be able to read the specified backup storage.
bsName := pointer.Get(dbb.Spec).BackupStorageName
if err := e.enforce(user, rbac.ResourceBackupStorages, rbac.ActionCreate, rbac.ObjectName(namespace, bsName)); err != nil {
if err := e.enforce(user, rbac.ResourceBackupStorages, rbac.ActionRead, rbac.ObjectName(namespace, bsName)); err != nil {
return err
}

Expand Down

0 comments on commit a54e5db

Please sign in to comment.