diff --git a/internal/webserver/api/Api_test.go b/internal/webserver/api/Api_test.go index cee1eba..fc3be4e 100644 --- a/internal/webserver/api/Api_test.go +++ b/internal/webserver/api/Api_test.go @@ -96,7 +96,7 @@ func setPermissionApikey(key string, newPermission uint8, t *testing.T) { } func getAvailablePermissions(t *testing.T) []uint8 { - result := []uint8{models.ApiPermView, models.ApiPermUpload, models.ApiPermDelete, models.ApiPermApiMod, models.ApiPermEdit} + result := []uint8{models.ApiPermView, models.ApiPermUpload, models.ApiPermDelete, models.ApiPermApiMod, models.ApiPermEdit, models.ApiPermReplace} sum := 0 for _, perm := range result { sum = sum + int(perm)