-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: role based access control for gql queries (#4554)
- Loading branch information
1 parent
87a1d6e
commit f25e751
Showing
16 changed files
with
186 additions
and
157 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Permission Matrix for GraphQL API | ||
|
||
## Mutations | ||
|
||
| Action | Admin | Member | | ||
|:-----------------------------|:-----:|:------:| | ||
| Create User | Yes | No | | ||
| Delete User | Yes | No | | ||
| Change Own Password | Yes | Yes | | ||
| Change Other's Password | Yes | No | | ||
| Change Own Username | Yes | Yes | | ||
| Change Other's Username | Yes | No | | ||
| Change Own Email | No | No | | ||
| Change Other's Email | No | No | | ||
| Create System API Keys | Yes | No | | ||
| Delete System API Keys | Yes | No | | ||
| Create Own User API Keys | Yes | Yes | | ||
| Delete Own User API Keys | Yes | Yes | | ||
| Delete Other's User API Keys | Yes | No | | ||
|
||
## Queries | ||
|
||
| Action | Admin | Member | | ||
|:-------------------------------------|:-----:|:------:| | ||
| List All System API Keys | Yes | No | | ||
| List All User API Keys | Yes | No | | ||
| List All Users | Yes | No | | ||
| Fetch Other User's Info, e.g. emails | Yes | No | |
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
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.