Skip to content

Conversation

@johha
Copy link
Contributor

@johha johha commented Nov 19, 2021

The checks if an org is suspended and the user has write permissions are implemented in the same method. Thus an 'unauthorized' error could be misleading if a user is e.g. space developer but the org is suspended. With this PR the check for a suspended org is moved into a dedicated method and all controllers have been adapted to return a different error in case the user has write permissions but the org is suspended (still an HTTP 403 error but with a different message).

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

@philippthun philippthun force-pushed the org-active-validation branch from 32a3ba6 to e7b42b4 Compare March 3, 2022 07:36
@WeiQuan0605 WeiQuan0605 force-pushed the org-active-validation branch 3 times, most recently from 452cff2 to 50bc0fa Compare March 24, 2022 15:55
@philippthun philippthun reopened this Mar 25, 2022
The checks if an org is suspended and the user has write permissions are
implemented in the same method. Thus an 'unauthorized' error could be
misleading if a user is e.g. space developer but the org is suspended.
With this PR the check for a suspended org is moved into a dedicated
method and all controllers have been adapted to return a different error
in case the user has write permissions but the org is suspended (still
an HTTP 403 error but with a different message).

Co-authored-by: Johannes Haass <johannes.haass@sap.com>
Co-authored-by: Philipp Thun <philipp.thun@sap.com>
@philippthun philippthun force-pushed the org-active-validation branch from 943a186 to ba2fea5 Compare July 5, 2022 14:35
@philippthun philippthun marked this pull request as ready for review July 5, 2022 14:37
@philippthun philippthun removed their assignment Jul 5, 2022
@philippthun philippthun merged commit 2b195ff into cloudfoundry:main Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants