-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix default for allowing new organization creation for new users #7017
Conversation
When creating users DefaultAllowCreateOrganization was ignored. Signed-off-by: Julian Picht <julian.picht@gmail.com>
~~Looking at the code I think these two settings need to be coalesced. It doesn't appear that DEFAULT_ALLOW_CREATE_ORGANIZATION is wired into anything at all. ~~ |
|
I can certainly do that as well. Should there be a warning if somebody has it set in the config file? Is there a place to add a message to, so it will end up in the release notes? |
Hmm... let's just fix the test. I think that's the correct thing to do. Make line 263: Lines 262 to 264 in 6eb53ac
setting.Service.DefaultAllowCreateOrganization = true |
Signed-off-by: Julian Picht <julian.picht@gmail.com>
I ran the drone test locally before creating this pull request. It seems the test did not fail for me. What did I do wrong? The output can be found here: https://gist.github.com/jpicht/6337485ab466776fded3ee22089d45dc |
You didn't run the unit tests - that is |
Codecov Report
@@ Coverage Diff @@
## master #7017 +/- ##
==========================================
- Coverage 41.5% 41.48% -0.02%
==========================================
Files 440 440
Lines 59453 59452 -1
==========================================
- Hits 24675 24663 -12
- Misses 31558 31570 +12
+ Partials 3220 3219 -1
Continue to review full report at Codecov.
|
Thanks! That step should probably be added to the contributors guide. |
Make lgtm work |
Please send backport to release/v1.8 branch |
…) (#7034) * FIX issue 6542 When creating users DefaultAllowCreateOrganization was ignored. Signed-off-by: Julian Picht <julian.picht@gmail.com> * fix TestCreateUser_Issue5882 Signed-off-by: Julian Picht <julian.picht@gmail.com>
…gitea#7017) Fixed go-gitea#6542 When creating users DefaultAllowCreateOrganization was ignored. Signed-off-by: Julian Picht <julian.picht@gmail.com> * fix TestCreateUser_Issue5882 Signed-off-by: Julian Picht <julian.picht@gmail.com>
When creating users DefaultAllowCreateOrganization was ignored.
This is simple two-line fix for issue #6542.