githaven-fork/routers
Richard Nienaber 908136c557
add configuration option to restrict users by default (#16256)
* add configuration option to restrict users by default

* default IsRestricted permission only set on sign up

setting this in the model messes with other workflows (e.g. syncing LDAP users) where the IsRestricted permission needs to be explicitly set and not overridden by a config value

* fix formatting

* Apply suggestions from code review

* ensure newly created user is set to restricted

* ensure imports are in the correct order

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-07-15 15:19:48 -04:00
..
api/v1 Check user instead of organization when creating a repo from a template via API (#16346) 2021-07-15 20:19:39 +02:00
common Support custom mime type mapping for text files (#16304) 2021-06-30 17:31:54 -04:00
install just add some unit tests (#16291) 2021-06-29 22:00:02 +01:00
private Add tag protection (#15629) 2021-06-25 16:28:55 +02:00
utils just add some unit tests (#16291) 2021-06-29 22:00:02 +01:00
web add configuration option to restrict users by default (#16256) 2021-07-15 15:19:48 -04:00
init.go Add LRU mem cache implementation (#16226) 2021-07-10 23:54:15 +02:00