You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules
Manush Dodunekov 1751d5fcf2 Restricted users (#6274)
* Restricted users (#4334): initial implementation

* Add User.IsRestricted & UI to edit it

* Pass user object instead of user id to places where IsRestricted flag matters

* Restricted users: maintain access rows for all referenced repos (incl public)

* Take logged in user & IsRestricted flag into account in org/repo listings, searches and accesses

* Add basic repo access tests for restricted users

Signed-off-by: Manush Dodunekov <manush@stendahls.se>

* Mention restricted users in the faq

Signed-off-by: Manush Dodunekov <manush@stendahls.se>

* Revert unnecessary change `.isUserPartOfOrg` -> `.IsUserPartOfOrg`

Signed-off-by: Manush Dodunekov <manush@stendahls.se>

* Remove unnecessary `org.IsOrganization()` call

Signed-off-by: Manush Dodunekov <manush@stendahls.se>

* Revert to an `int64` keyed `accessMap`

* Add type `userAccess`
* Add convenience func updateUserAccess()
* Turn accessMap into a `map[int64]userAccess`

Signed-off-by: Manush Dodunekov <manush@stendahls.se>

* or even better: `map[int64]*userAccess`

* updateUserAccess(): use tighter syntax as suggested by lafriks

* even tighter

* Avoid extra loop

* Don't disclose limited orgs to unauthenticated users

* Don't assume block only applies to orgs

* Use an array of `VisibleType` for filtering

* fix yet another thinko

* Ok - no need for u

* Revert "Ok - no need for u"

This reverts commit 5c3e886aabd5acd997a3b35687d322439732c200.

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
5 years ago
..
auth Restricted users (#6274) 5 years ago
avatar Improve handling of non-square avatars (#7025) 5 years ago
base Use gitea forked macaron (#7933) 5 years ago
cache Use gitea forked macaron (#7933) 5 years ago
charset deps: update and fix chardet import (#9351) 5 years ago
context Add owner_name column for table repository for maintaince reason (#9717) 5 years ago
convert Allow repo admin to merge PR regardless of review status (#9611) 5 years ago
cron Graceful: Xorm, RepoIndexer, Cron and Others (#9282) 5 years ago
generate Integrate OAuth2 Provider (#5378) 5 years ago
git Mark PR reviews as stale at push and allow to dismiss stale approvals (#9532) 5 years ago
gitgraph Move git graph from models to modules/graph (#9027) 5 years ago
graceful Fix missed change to GetManager() (#9361) 5 years ago
highlight Add a lot of extension to language mappings for syntax highlights (#7741) 5 years ago
httplib Add golangci (#6418) 5 years ago
indexer Graceful Queues: Issue Indexing and Tasks (#9363) 5 years ago
lfs Make repository management section handle lfs locks (#8726) 5 years ago
log Log: Ensure FLAGS=none is -1 (#9287) 5 years ago
markup Change markdown rendering from blackfriday to goldmark (#9533) 5 years ago
metrics Prometheus endpoint (#5256) 6 years ago
migrations Move create/fork repository from models to modules/repository (#9489) 5 years ago
notification Move push commits from models to modules/repository (#9370) 5 years ago
options Use gitea forked macaron (#7933) 5 years ago
password Add password requirement info on error (#9074) 5 years ago
pprof Add golangci (#6418) 5 years ago
private Batch hook pre- and post-receive calls (#8602) 5 years ago
process Graceful: Cancel Process on monitor pages & HammerTime (#9213) 5 years ago
public Use gitea forked macaron (#7933) 5 years ago
queue Remove unused lock (#9709) 5 years ago
recaptcha fixed reCAPTCHA URL (#9083) 5 years ago
references Change markdown rendering from blackfriday to goldmark (#9533) 5 years ago
repofiles Move create/fork repository from models to modules/repository (#9489) 5 years ago
repository Move create/fork repository from models to modules/repository (#9489) 5 years ago
secret Integrate OAuth2 Provider (#5378) 5 years ago
session Use gitea forked macaron (#7933) 5 years ago
setting Make hook status printing configurable with delay (#9641) 5 years ago
ssh Graceful: Xorm, RepoIndexer, Cron and Others (#9282) 5 years ago
structs [API] orgEditTeam make Fields optional (#9556) 5 years ago
sync Graceful: Xorm, RepoIndexer, Cron and Others (#9282) 5 years ago
task Move create/fork repository from models to modules/repository (#9489) 5 years ago
templates Move push commits from models to modules/repository (#9370) 5 years ago
test Add Close() method to gogitRepository (#8901) 5 years ago
timeutil Use gitea forked macaron (#7933) 5 years ago
upload Fix upload file type check (#7890) 5 years ago
user Add golangci (#6418) 5 years ago
util Convert EOL to UNIX-style to render MD properly (#8925) 5 years ago
validation Implement webhook branch filter (#7791) 5 years ago
webhook Add HTML URL to API Issues (#9654) 5 years ago