{"action":"created","issue":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/3954","repository_url":"https://api.github.com/repos/go-gitea/gitea","labels_url":"https://api.github.com/repos/go-gitea/gitea/issues/3954/labels{/name}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/3954/comments","events_url":"https://api.github.com/repos/go-gitea/gitea/issues/3954/events","html_url":"https://github.com/go-gitea/gitea/issues/3954","id":322518318,"number":3954,"title":"Members in created team for org cannot view issue details.","user":{"login":"bkraul","id":14616851,"avatar_url":"https://avatars2.githubusercontent.com/u/14616851?v=4","gravatar_id":"","url":"https://api.github.com/users/bkraul","html_url":"https://github.com/bkraul","followers_url":"https://api.github.com/users/bkraul/followers","following_url":"https://api.github.com/users/bkraul/following{/other_user}","gists_url":"https://api.github.com/users/bkraul/gists{/gist_id}","starred_url":"https://api.github.com/users/bkraul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkraul/subscriptions","organizations_url":"https://api.github.com/users/bkraul/orgs","repos_url":"https://api.github.com/users/bkraul/repos","events_url":"https://api.github.com/users/bkraul/events{/privacy}","received_events_url":"https://api.github.com/users/bkraul/received_events","type":"User","site_admin":false},"labels":[{"id":472744938,"url":"https://api.github.com/repos/go-gitea/gitea/labels/kind/bug","name":"kind/bug","color":"ee0701","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-05-12T15:04:29Z","updated_at":"2018-05-23T20:43:22Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n    1. Please speak English, this is the language all of us can speak and write.\r\n    2. Please ask questions or configuration/deploy problems on our Discord \r\n       server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io).\r\n    3. Please take a moment to check that your issue doesn't already exist.\r\n    4. Please give all relevant information below for bug reports, because \r\n       incomplete details will be handled as an invalid report.\r\n-->\r\n\r\n- Gitea version (or commit ref):\r\n- Git version: 15d0ac7 \r\n- Operating system: Ubuntu 18.04 LTS\r\n- Database (use `[x]`):\r\n  - [ ] PostgreSQL\r\n  - [x] MySQL\r\n  - [ ] MSSQL\r\n  - [ ] SQLite\r\n- Can you reproduce the bug at https://try.gitea.io:\r\n  - [x] Yes (provide example URL: https://try.gitea.io/issues )\r\n  - [ ] No\r\n  - [ ] Not relevant\r\n- Log gist:\r\n\r\n## Description and Screenshots\r\nWhen creating an organization, a default *Owners* team is created. All members in the owners team can view and modify all repos in organization, including issues.\r\n\r\nA new team is created, called \"Managers\", a read-only team, to allow managers to view issues. All other items are disabled. What should happen, is that when going to the issues section, they should see all open/closed issues for all repos in organization.\r\n\r\nIn my build, 15d0ac7, team users can see the list of issues, but they get a 404 when clicking on the detail of the issue, as follows:\r\n\r\n![image](https://user-images.githubusercontent.com/14616851/39958608-daf31a8a-55ca-11e8-8579-ae8cec0e10ac.png)\r\n\r\n![image](https://user-images.githubusercontent.com/14616851/39958619-f3a0dfa4-55ca-11e8-8a57-e86d9431fe0b.png)\r\n\r\nOn the try.gitea site, I created the following user:\r\n\r\n* user: arrow_user\r\n* pass: Password1\r\n\r\nAnd assigned it to my new organization, in a new team called \"Managers\", Arrow, which has a test repo in it.\r\n\r\n## Update:\r\nIt appears the desired behavior works correctly on try.gitea. I am not sure what I am doing wrong in my instance. I am running off a docker container, and I have just updated it to the latest, the issue persists. My apologies for the ever-changing information here. I want to make sure I am providing accurate data.\r\n<!-- **If this issue involves the Web Interface, please include a screenshot** -->\r\n"},"comment":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/comments/391489796","html_url":"https://github.com/go-gitea/gitea/issues/3954#issuecomment-391489796","issue_url":"https://api.github.com/repos/go-gitea/gitea/issues/3954","id":391489796,"user":{"login":"bkraul","id":14616851,"avatar_url":"https://avatars2.githubusercontent.com/u/14616851?v=4","gravatar_id":"","url":"https://api.github.com/users/bkraul","html_url":"https://github.com/bkraul","followers_url":"https://api.github.com/users/bkraul/followers","following_url":"https://api.github.com/users/bkraul/following{/other_user}","gists_url":"https://api.github.com/users/bkraul/gists{/gist_id}","starred_url":"https://api.github.com/users/bkraul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkraul/subscriptions","organizations_url":"https://api.github.com/users/bkraul/orgs","repos_url":"https://api.github.com/users/bkraul/repos","events_url":"https://api.github.com/users/bkraul/events{/privacy}","received_events_url":"https://api.github.com/users/bkraul/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T20:43:22Z","updated_at":"2018-05-23T20:43:22Z","author_association":"NONE","body":"I believe I have found the cause that triggers the issue: *The repository is marked as private*. \r\n\r\nWhen I *unmark* it as private, then the test1 user who is a member of the Managers team can view the issue without problems. I am thinking this is the reason the behavior worked on try.gitea (test project was likely set as public).\r\n\r\nThis presents a problem, because I do indeed want the projects to remain private and not visible to all users to connect to the gitea instance. However, given that I have explicitly added the user to a team in the organization, the user should be able to see and work with issues, while respecting the privileges given to the team he/she is in.\r\n\r\nDoes that make sense?"}}
{"actor":{"display_login":"bkraul"}}