Last active
July 6, 2023 14:23
-
-
Save coryhouse/ec40295d0112d85b19a6cca3da1646cf to your computer and use it in GitHub Desktop.
Permission response
This file contains hidden or 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
/** Return this when the user signs in */ | |
type GetUserPermissionsResponse = { | |
featurePermissions: FeaturePermission[]; | |
projectPermissions: ProjectPermission[]; | |
}; | |
type FeaturePermission = { | |
subModuleId: number; | |
permissions: Permission[]; | |
}; | |
type ProjectPermission = { | |
projectId: number; | |
projectPermissions: FeaturePermission[]; | |
}; | |
type Permission = "add" | "view" | "edit" | "delete"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment