mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:07:30 +00:00
feat: check has project (#2206)
* feat: define org grant check on project * feat: has project check * feat: has project check * feat: check has project * feat: check has project * feat: add has project check to console * Update internal/auth/repository/eventsourcing/eventstore/auth_request.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * Update internal/auth/repository/eventsourcing/eventstore/auth_request.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * Update internal/auth/repository/eventsourcing/eventstore/auth_request.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * Update internal/auth/repository/eventsourcing/eventstore/auth_request.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * Update internal/auth/repository/eventsourcing/eventstore/auth_request_test.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * Update internal/auth/repository/eventsourcing/eventstore/auth_request_test.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * Update internal/auth/repository/eventsourcing/eventstore/auth_request_test.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * Update internal/ui/login/static/i18n/en.yaml Co-authored-by: Livio Amstutz <livio.a@gmail.com> * fix: add has project tests Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
@@ -3452,6 +3452,7 @@ message AddProjectRequest {
|
||||
string name = 1 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
||||
bool project_role_assertion = 2;
|
||||
bool project_role_check = 3;
|
||||
bool has_project_check = 4;
|
||||
}
|
||||
|
||||
message AddProjectResponse {
|
||||
@@ -3464,6 +3465,7 @@ message UpdateProjectRequest {
|
||||
string name = 2 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
||||
bool project_role_assertion = 3;
|
||||
bool project_role_check = 4;
|
||||
bool has_project_check = 5;
|
||||
}
|
||||
|
||||
message UpdateProjectResponse {
|
||||
|
@@ -29,6 +29,8 @@ message Project {
|
||||
bool project_role_assertion = 5;
|
||||
// ZITADEL checks if the user has at least one on this project
|
||||
bool project_role_check = 6;
|
||||
// ZITADEL checks if the org of the user has permission to this project
|
||||
bool has_project_check = 7;
|
||||
}
|
||||
|
||||
message GrantedProject {
|
||||
|
Reference in New Issue
Block a user