mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-29 23:48:52 +00:00
feat: get my project permission (#245)
This commit is contained in:
@@ -28,3 +28,11 @@ func (s *Server) GetMyZitadelPermissions(ctx context.Context, _ *empty.Empty) (*
|
||||
}
|
||||
return &MyPermissions{Permissions: perms}, nil
|
||||
}
|
||||
|
||||
func (s *Server) GetMyProjectPermissions(ctx context.Context, _ *empty.Empty) (*MyPermissions, error) {
|
||||
perms, err := s.repo.SearchMyProjectPermissions(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &MyPermissions{Permissions: perms}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user