fix: Custom text split features (#2225)

* fix: separate tier of custom text (message and login)

* fix: add migration

* fix: build problems

* fix: tests

* Update internal/api/grpc/admin/features.go

Co-authored-by: Livio Amstutz <livio.a@gmail.com>

* Update internal/api/grpc/admin/features.go

Co-authored-by: Livio Amstutz <livio.a@gmail.com>

* fix: rename sql file

* fix: change sql files

* fix: console

* fix: console

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
Fabi
2021-08-18 12:58:57 +02:00
committed by GitHub
parent 0ab973b967
commit f4fa3ecef3
26 changed files with 339 additions and 60 deletions

View File

@@ -2613,6 +2613,8 @@ message SetDefaultFeaturesRequest {
bool custom_text = 17;
bool privacy_policy = 18;
bool metadata_user = 19;
bool custom_text_message = 20;
bool custom_text_login = 21;
}
message SetDefaultFeaturesResponse {
@@ -2649,6 +2651,8 @@ message SetOrgFeaturesRequest {
bool custom_text = 18;
bool privacy_policy = 19;
bool metadata_user = 20;
bool custom_text_message = 21;
bool custom_text_login = 22;
}
message SetOrgFeaturesResponse {

View File

@@ -27,6 +27,8 @@ message Features {
bool custom_text = 16;
bool privacy_policy = 17;
bool metadata_user = 18;
bool custom_text_message = 19;
bool custom_text_login = 20;
}
message FeatureTier {

View File

@@ -2271,7 +2271,7 @@ service ManagementService {
option (zitadel.v1.auth_option) = {
permission: "policy.write";
feature: "custom_text"
feature: "custom_text.message"
};
}
@@ -2319,7 +2319,7 @@ service ManagementService {
option (zitadel.v1.auth_option) = {
permission: "policy.write";
feature: "custom_text"
feature: "custom_text.message"
};
}
@@ -2368,7 +2368,7 @@ service ManagementService {
option (zitadel.v1.auth_option) = {
permission: "policy.write";
feature: "custom_text"
feature: "custom_text.message"
};
}
@@ -2417,7 +2417,7 @@ service ManagementService {
option (zitadel.v1.auth_option) = {
permission: "policy.write";
feature: "custom_text"
feature: "custom_text.message"
};
}
@@ -2466,7 +2466,7 @@ service ManagementService {
option (zitadel.v1.auth_option) = {
permission: "policy.write";
feature: "custom_text"
feature: "custom_text.message"
};
}
@@ -2515,7 +2515,7 @@ service ManagementService {
option (zitadel.v1.auth_option) = {
permission: "policy.write";
feature: "custom_text"
feature: "custom_text.message"
};
}
@@ -2563,7 +2563,7 @@ service ManagementService {
option (zitadel.v1.auth_option) = {
permission: "policy.write";
feature: "custom_text"
feature: "custom_text.login"
};
}