Repository navigation
Hide invite user form if can't create users - #8141
Merged
Merged
Conversation
tino097
approved these changes
Apr 24, 2024
This was referenced Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes and error inviting new user with CKAN 2.10.4
If we can't create new users, then the invite form will generate an error
If
create_user_via_webis disabled this error will be raised.File "/code/venv/lib/python3.11/site-packages/ckan/config/middleware/../../views/group.py", line 1114, in post user_dict = _action(u'user_invite')(context, user_data_dict) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/code/venv/lib/python3.11/site-packages/ckan/logic/__init__.py", line 580, in wrapped result = _action(context, data_dict, **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/code/venv/lib/python3.11/site-packages/ckan/logic/action/create.py", line 1104, in user_invite user_dict = _get_action('user_create')( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/code/venv/lib/python3.11/site-packages/ckan/logic/__init__.py", line 580, in wrapped result = _action(context, data_dict, **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/code/venv/lib/python3.11/site-packages/ckan/logic/action/create.py", line 1001, in user_create _check_access('user_create', context, data_dict) File "/code/venv/lib/python3.11/site-packages/ckan/logic/__init__.py", line 391, in check_access raise NotAuthorized(msg)Features:
Please [X] all the boxes above that apply