Get rid of previous permission providers
Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
@@ -11,6 +11,7 @@ export const rightsRequestsQuery = graphql`
|
||||
query RightsRequestGraphListQuery($organizationId: ID!) {
|
||||
node(id: $organizationId) {
|
||||
... on Organization {
|
||||
canCreateRightsRequest: permission(action: "core:rights-request:create")
|
||||
...RightsRequestsPageFragment
|
||||
}
|
||||
}
|
||||
@@ -29,6 +30,8 @@ export const rightsRequestNodeQuery = graphql`
|
||||
details
|
||||
deadline
|
||||
actionTaken
|
||||
canUpdate: permission(action: "core:rights-request:update")
|
||||
canDelete: permission(action: "core:rights-request:delete")
|
||||
organization {
|
||||
id
|
||||
name
|
||||
|
||||
@@ -20,8 +20,10 @@ import { useTranslate } from "@probo/i18n";
|
||||
export const paginatedStateOfApplicabilityQuery = graphql`
|
||||
query StateOfApplicabilityGraphPaginatedQuery($organizationId: ID!) {
|
||||
organization: node(id: $organizationId) {
|
||||
__typename
|
||||
... on Organization {
|
||||
id
|
||||
canCreateStateOfApplicability: permission(action: "core:state-of-applicability:create")
|
||||
...StateOfApplicabilityGraphPaginatedFragment
|
||||
}
|
||||
}
|
||||
@@ -59,6 +61,9 @@ export const paginatedStateOfApplicabilityFragment = graphql`
|
||||
snapshotId
|
||||
createdAt
|
||||
updatedAt
|
||||
|
||||
canDelete: permission(action: "core:state-of-applicability:delete")
|
||||
|
||||
controlsInfo: controls(first: 0) {
|
||||
totalCount
|
||||
}
|
||||
@@ -197,6 +202,8 @@ export const stateOfApplicabilityNodeQuery = graphql`
|
||||
snapshotId
|
||||
createdAt
|
||||
updatedAt
|
||||
canUpdate: permission(action: "core:state-of-applicability:update")
|
||||
canDelete: permission(action: "core:state-of-applicability:delete")
|
||||
organization {
|
||||
id
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user