-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
Remove organization from superuser edit/index of users #4453
Remove organization from superuser edit/index of users #4453
Conversation
app/views/admin/users/new.html.erb
Outdated
<%= f.input :organization_id, label: "Organization", wrapper: :input_group, required: true, autofocus: true do %> | ||
<span class="input-group-text"><%= fa_icon "building" %></span> | ||
<%= f.input_field :organization_id, collection: @organizations, class: "form-control" %> | ||
<% end %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ticket suggested not making changes to New, just Edit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is true. I'm trying to find the issue that past CL failed to link to in this issue. (i.e. why it is a separate thing) (it's still in our backlog, but part of a larger being able to add more types of users -- including superadmins).
New doesn't currently have the role and resource part of the form -- removing the organization without other changes will simply break it.
@cancelei are you still planning to finish this up? |
@dorner Since this PR has been kind of abandoned, I went ahead and tried to wrap it up. It's now ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small functional issue -- I'd like to see the "Banks and Partners" list the distinct resources, instead of once per role. Any org admin is ending up getting listed twice, because they have both the user and admin role.
This looks good to me functionally. I have added making the new users add a role instead of the organization to the project's copious inbox. |
@dorner Can you take a final look at this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@cancelei: Your PR |
… admin users list view
Resolves #4296
Description
Type of change
How Has This Been Tested?
Screenshots