Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Organizations issue in gogs

Tags:

git

gogs

I am new to Gogs. Have a trouble related to creating organizations (groups).

I created an organization Org-A and added a private repository Repo-A to it. I added another user User-A to this organization (as a member and a team member). But when User-A wants to see content of Repo-A, Gogs shows a "404: Not Found" page. When I change the privacy of Repo-A to public User-A can see it, but all other users also can see it.

How can I group repositories into organizations and add different users to these organizations, that users can read/write repositories in the organization they are member of? I want repos to be visible/editable only for organization members.

like image 451
0bj3ct Avatar asked Jan 17 '17 18:01

0bj3ct


People also ask

What are the most common problems organizations face today?

Working with executives and leaders in over 250 organizations over the last 24 years, I've seen that most of the problems organizations face have to do with either ineffective systems, strategies, or people. The people stuff is messy, exhausting even.

What is the external issue of funding to NGOs?

The external issue of funding: According to government data a total of 3,068 non-governmental organizations (NGOs) received foreign funding above Rs. 22,000 Cr in 2014-15. It is often said that foreign-funded NGOs tries to propagate the foreign propaganda to stall developmental projects.

What happens if an NGO does not comply with the FCRA?

In a case of non-compliance with provisions of the FCRA, the government can penalize an NGO. For example, if these NGOs don’t file annual returns, the government can issue a show-cause notice and subsequently, suspend or cancel their foreign funding licenses.

Are NGOs regulated by FEMA?

According to FEMA Act, these NGOs are regulated by Finance Ministry. For example, International donors such as the Ford Foundation, the U.K.’s Department for International Development etc are registered under FEMA but not the Foreign Contribution Regulation Act (FCRA) 2010. This makes it difficult to monitor the flow of funds effectively.


2 Answers

As mentioned in issue 1744:

Adding those users to team under organization solves to issue.

Somehow we expected to default behavior of joining an Organization should give those users to read permission.

If this is still not working (ie, the User was already in a Team of the right organization):

  • double-check the case of the url (it is case sensitive)
  • try and check if you reproduce the same problem with gitea (a fork of gogs)

As commented by Hamish Carpenter:

I finally found the screen to add link teams with repositories.
This then allows you to add repositories to other teams eg Developers.

When you see the team on the right hand side, click on the "0 Repositories" link then add the repositories like you'd add team members.

Igor Dejanović adds:

You set the permission on the team.
Then on the team page follow the links "x members" to add new member and "y repositories" to add new repository.
Team is essentially a many-to-many link between members and repositories.

like image 153
VonC Avatar answered Sep 20 '22 04:09

VonC


Maybe the previous answer by Vonc was correct for older versions of gogs, but in my version (0.11.43) it is not correct.

You can read what the gogs maintainer (Unknown) wrote about it here:

By design, only the Owners team get access when create a new repository, if need to add this repository to other teams manually. gogs issue #1834

And also, the discussion on how to make team repos. (One look at the image inside this link and you'll understand how to add repos to teams in an organization).

To make this clear, I will add some info here:

For me the confusion come from the fact that I used to add members as collaborators into repos, but in the organizations-teams, you need to add the repos into the teams.

In a Gogs organization you can create repositories and teams. By default each organization comes with one team named: Owners. the team members of Owners can read/write all the repos in the organization.

For each new team you create, the team starts with no repositories associated with it, so the team members cannot access any private repositories (for public repos there is no issue anyone can see them).

You can add any of the organization repos to each team, and in the teams settings page, set the permissions (read/write)

Returning to the specific question:

Org-A -> team-A(write/read permission only) - > member-A

Org-A:Repo-A(private)

if you want any member of team-A to access Repo-A, Add Repo-A into team-A repositories.

Have to finish with something that still not is feeling right in the organization permission process:

  • it is possible to manually add any user to any repo as a collaborator and set its permission directly from the repo settings
  • but, it is not possible to add in the same screen a team as a collaborator, (this should be done from the team page).
  • and more then that, if you enter into the repo settings - collaboration page, you will not see the teams that can access this repo, you will see only manually set users.
like image 43
Kings85 Avatar answered Sep 18 '22 04:09

Kings85