cem / gogs-sandstorm

Gogs for the Sandstorm platform
11 stars 8 forks source link

Request: read-only sharing #8

Open garrison opened 8 years ago

garrison commented 8 years ago

Hi there,

It would be great if gogs-sandstorm allowed read-only sharing, just like the gitweb port currently does. At the moment, I am only able to share gogs repositories with full read/write permission.

cem commented 8 years ago

With the current port, when you share a Gogs "repo" you're actually sharing an entire repo hub. Other people in the hub shouldn't be able to change your repositories. You can change this behavior by using the access control options of Gogs to create private repos or to add committers.

It would be possible to introduce read-only accounts which disallow creation of repositories, but it seems to me like this wouldn't have many real life use cases.