forked from gitea/gitea

Old code did not respect owner visibility and the organization access calculation was wrong if the user was not a member.
Old code did not respect owner visibility and the organization access calculation was wrong if the user was not a member.