forgejo-federation/routers/web/user
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
..
setting Fix activation of primary email addresses (#16385) 2021-07-13 22:59:27 +02:00
auth.go add configuration option to restrict users by default (#16256) 2021-07-15 15:19:48 -04:00
auth_openid.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
avatar.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
home.go Improve performance of dashboard list orgs (#16099) 2021-06-14 20:18:09 +08:00
home_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
main_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
notification.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
oauth.go Add asymmetric JWT signing (#16010) 2021-06-17 23:56:46 +02:00
profile.go Add Visible modes function from Organisation to Users too (#16069) 2021-06-26 20:53:14 +01:00
task.go Add Status Updates whilst Gitea migrations are occurring (#15076) 2021-06-16 18:02:24 -04:00