feat: get my project permission (#245)

This commit is contained in:
Fabi
2020-06-19 15:33:54 +02:00
committed by GitHub
parent 710652ef24
commit d89087cbe0
8 changed files with 3711 additions and 2774 deletions
+8
View File
@@ -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
}