forked from airbytehq/airbyte-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SSO: First user signed up in an Org gets OrganizationAdmin, the rest …
…get OrganizationMember (#9372)
- Loading branch information
Showing
9 changed files
with
428 additions
and
108 deletions.
There are no files selected for viewing
This file contains 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
23 changes: 23 additions & 0 deletions
23
...s-server/src/main/java/io/airbyte/commons/server/errors/OperationNotAllowedException.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright (c) 2023 Airbyte, Inc., all rights reserved. | ||
*/ | ||
|
||
package io.airbyte.commons.server.errors; | ||
|
||
/** | ||
* Exception when an operation is correctly formatted and syntactically valid, but not allowed due | ||
* to the current state of the system. For example, deletion of a resource that should not be | ||
* deleted according to business logic. | ||
*/ | ||
public class OperationNotAllowedException extends KnownException { | ||
|
||
public OperationNotAllowedException(final String message) { | ||
super(message); | ||
} | ||
|
||
@Override | ||
public int getHttpCode() { | ||
return 403; | ||
} | ||
|
||
} |
This file contains 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
This file contains 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
Oops, something went wrong.