[英]how to set permission on each project in asp.net core when use Azure 2020 as Git
we are using multi layer solution in asp.net core.我们在 asp.net 内核中使用多层解决方案。 it means in one solution we have some projects and we use Azure dev ops 2020 as local Git repository, the question is how can set permission for each project?
这意味着在一个解决方案中我们有一些项目,我们使用 Azure dev ops 2020 作为本地 Git 存储库,问题是如何为每个项目设置权限? I want to grant pull and push request to testUser1 for project A but at same time I don't want this user have access to Project B.
我想向项目 A 的 testUser1 授予拉取和推送请求,但同时我不希望该用户有权访问项目 B。
how to set permission on each project in asp.net core when use Azure 2020 as Git
使用Azure 2020 as Git时如何设置asp.net core中每个项目的权限
I am afraid there is no such permission setting on each project in asp.net core when use Azure 2020 as git.恐怕在使用Azure 2020作为git时,asp.net核心中的每个项目都没有这样的权限设置。
According to the document Set Git repository permissions :根据文档设置 Git 存储库权限:
You grant or restrict access to repositories to lock down who can contribute to your source code and manage other features.
您授予或限制对存储库的访问权限,以锁定可以为您的源代码做出贡献并管理其他功能的人员。 You can set permissions across all Git repositories by making changes to the top-level Git repositories entry.
您可以通过更改顶级 Git 存储库条目来设置所有 Git 存储库的权限。 Individual repositories inherit permissions from the top-level Git Repositories entry .
各个存储库从顶级 Git 存储库条目继承权限。
We could only set the permission on each repository instead of the each project.我们只能在每个存储库而不是每个项目上设置权限。
Besides, since project A and project B are in the same asp.net core solution, there should be a certain connection between them.另外,由于项目A和项目B在同一个asp.net核心方案中,两者之间应该有一定的联系。 Users can only see one of them instead of all the codes.
用户只能看到其中一个而不是所有代码。 It will be difficult to understand that the code is only based on the code of one of the projects.
很难理解代码仅基于其中一个项目的代码。 If they are independent of each other, you may consider assigning the two projects in different repo to manage separately.
如果相互独立,可以考虑将这两个项目分配到不同的repo中,分别管理。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.