Troels
Troels

Reputation: 352

How to safely invite freelancers to a part of your web-project?

I am looking for a safe method to invite freelancers to help with some tasks on our web-site, and where the freelancer only have write access to some pages.

I know that this is done in example Windows Team Foundation Server. But in this case, the freelancer should be able to "run" the full site, testing that the webpage is ok. And maybe it is me, I cant see those functions on TFS or GitHub. And again without being able to access the code on the other pages.

Example. I have a website, with 2 pages and 1 class.

  • Webpage1. Closed to the freelancer. The freelancer may not edit or see the code.
  • Webpage2. The freelancer have read/write access
  • Class. The freelancer may call the public methods of the class, but not edit/see the code.
  • The website. The freelancer may run the full website on the developement server, and browse it

Upvotes: 0

Views: 75

Answers (1)

Andy Li-MSFT
Andy Li-MSFT

Reputation: 30362

Generally, in TFS we can create branches and set the user permissions accordingly to access the branches. Just create freelancer user group and set the permission accordingly (give the permission to access to the deployed website).

eg:

Put Webpage1 in Branch1 and set all the permission to Deny for freelancer group. See below screenshot for your reference (just an example, you can set the permission based on your requirement)

Put Webpage2 in Branch2 and give the freelancer group read/write (set the permissions based on your requirements) permission.

...

They are all merged to Main branch ...

Create Admin User/Group and give the permission to build/deploy website from Main branch.

Once they are all ready, The Admin user can merge all the sub branches to Main branch, and build/deploy the website. Then the freelancer can access to the website for testing.

Please see Permissions and groups defined for Team Services and TFS for details.

Git/Github should be also have the similar feature settings.

enter image description here

Upvotes: 1

Related Questions