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.
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>
3 years ago
..
admin Fix activation of primary email addresses (#16385) 3 years ago
dev Refactor routers directory (#15800) 3 years ago
events Refactor routers directory (#15800) 3 years ago
explore Refactor routers directory (#15800) 3 years ago
org Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
repo Add checkbox to delete pull branch after successful merge (#16049) 3 years ago
user add configuration option to restrict users by default (#16256) 3 years ago
base.go Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 3 years ago
goget.go Refactor routers directory (#15800) 3 years ago
home.go Refactor routers directory (#15800) 3 years ago
metrics.go Refactor routers directory (#15800) 3 years ago
swagger_json.go Refactor routers directory (#15800) 3 years ago
web.go Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago