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.
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.
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.
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.
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.
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):
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.
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With