Skip to content

#5222 | chore: get rid off possibility of editing organization as a admin user#5226

Merged
cielf merged 2 commits into
rubyforgood:mainfrom
zanetagebka:5222-remove-superuser-ability-to-edit
Jun 10, 2025
Merged

#5222 | chore: get rid off possibility of editing organization as a admin user#5226
cielf merged 2 commits into
rubyforgood:mainfrom
zanetagebka:5222-remove-superuser-ability-to-edit

Conversation

@zanetagebka

Copy link
Copy Markdown
Contributor

Resolves #5222

Description

  • remove controller actions
  • remove tests that became redundant
  • update routes to not create one for edit and update

Please also include relevant motivation and context.
Guide questions:

  • What motivated this change (if not already described in an issue)?
  • What alternative solutions did you consider?
  • What are the tradeoffs for your solution?

List any dependencies that are required for this change. (gems, js libraries, etc.)

Include anything else we should know about. -->

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

It was tested by-hand to see visual changes. Also automated tests were checked and since it was removing of feature I simply removed tests that currently are not needed.

Screenshots

Before:
Screenshot 2025-06-02 at 18 58 57

After:
Screenshot 2025-06-02 at 18 56 24

- remove controller actions
- remove tests that became redundant
- update routes to not create one for edit and update
…ove-superuser-ability-to-edit

# Conflicts:
#	app/views/admin/organizations/edit.html.erb
#	spec/requests/admin/organizations_requests_spec.rb
@cielf

cielf commented Jun 6, 2025

Copy link
Copy Markdown
Collaborator

Functionality works. over to @dorner for technical once over

@cielf cielf requested a review from dorner June 6, 2025 17:32
@dorner

dorner commented Jun 6, 2025

Copy link
Copy Markdown
Collaborator

@zanetagebka is there a reason this is still in Draft?

@zanetagebka

Copy link
Copy Markdown
Contributor Author

@dorner I wanted to make sure that everything is cleaned up and I did not have time to do so, so I kept it as draft.

@zanetagebka zanetagebka marked this pull request as ready for review June 10, 2025 06:51
@cielf cielf merged commit fa48014 into rubyforgood:main Jun 10, 2025
11 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

@zanetagebka: Your PR #5222 | chore: get rid off possibility of editing organization as a admin user is part of today's Human Essentials production release: 2025.06.15.
Thank you very much for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove superuser ability to administer organization settings that organization admins can change.

3 participants