Skip to content

Commit

Permalink
refactor(graphql,auth,#1026): Made properties of auth context readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
mwoelk authored and doug-martin committed Apr 13, 2021
1 parent 24b1193 commit 9837e3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/query-graphql/src/auth/authorizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ export enum OperationGroup {

export interface AuthorizationContext {
/** The name of the method that uses the @AuthorizeFilter decorator */
operationName: string;
readonly operationName: string;

/** The group this operation belongs to */
operationGroup: OperationGroup;
readonly operationGroup: OperationGroup;

/** If the operation does not modify any entities */
readonly: boolean;
readonly readonly: boolean;

/** If the operation can affect multiple entities */
many: boolean;
readonly many: boolean;
}

export interface Authorizer<DTO> {
Expand Down

0 comments on commit 9837e3f

Please sign in to comment.