Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-08-19 02:15:24 +02:00
add minimal secretsmanager plan for web-v2023.8.x
in web-v2023.8.x the getPlans() call was changed from `/plans/` to `/plans/all` and the create new organization form also requires a bitwardenProduct to differentiate between plans for PasswordManager and the SecretsManager
Dieser Commit ist enthalten in:
Ursprung
3d2df6ce11
Commit
33ef70c192
1 geänderte Dateien mit 17 neuen und 0 gelöschten Zeilen
|
@ -60,6 +60,7 @@ pub fn routes() -> Vec<Route> {
|
||||||
put_policy,
|
put_policy,
|
||||||
get_organization_tax,
|
get_organization_tax,
|
||||||
get_plans,
|
get_plans,
|
||||||
|
get_plans_all,
|
||||||
get_plans_tax_rates,
|
get_plans_tax_rates,
|
||||||
import,
|
import,
|
||||||
post_org_keys,
|
post_org_keys,
|
||||||
|
@ -1810,12 +1811,28 @@ fn get_plans() -> Json<Value> {
|
||||||
"Product": 0,
|
"Product": 0,
|
||||||
"Name": "Free",
|
"Name": "Free",
|
||||||
"NameLocalizationKey": "planNameFree",
|
"NameLocalizationKey": "planNameFree",
|
||||||
|
"BitwardenProduct": 0,
|
||||||
|
"MaxUsers": 0,
|
||||||
|
"DescriptionLocalizationKey": "planDescFree"
|
||||||
|
},{
|
||||||
|
"Object": "plan",
|
||||||
|
"Type": 0,
|
||||||
|
"Product": 1,
|
||||||
|
"Name": "Free",
|
||||||
|
"NameLocalizationKey": "planNameFree",
|
||||||
|
"BitwardenProduct": 1,
|
||||||
|
"MaxUsers": 0,
|
||||||
"DescriptionLocalizationKey": "planDescFree"
|
"DescriptionLocalizationKey": "planDescFree"
|
||||||
}],
|
}],
|
||||||
"ContinuationToken": null
|
"ContinuationToken": null
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[get("/plans/all")]
|
||||||
|
fn get_plans_all() -> Json<Value> {
|
||||||
|
get_plans()
|
||||||
|
}
|
||||||
|
|
||||||
#[get("/plans/sales-tax-rates")]
|
#[get("/plans/sales-tax-rates")]
|
||||||
fn get_plans_tax_rates(_headers: Headers) -> Json<Value> {
|
fn get_plans_tax_rates(_headers: Headers) -> Json<Value> {
|
||||||
// Prevent a 404 error, which also causes Javascript errors.
|
// Prevent a 404 error, which also causes Javascript errors.
|
||||||
|
|
Laden …
In neuem Issue referenzieren