Skip to content

Commit

Permalink
CanRead/CanWriteにBool()を追加 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamamoto-febc authored Mar 24, 2022
1 parent 2a3ee1d commit d4910a5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apis/v1/stringer.go → apis/v1/primitives.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,13 @@ func (v PermissionID) String() string {
func (v PermissionID) Int64() int64 {
return int64(v)
}

// Bool .
func (v CanRead) Bool() bool {
return bool(v)
}

// Bool .
func (v CanWrite) Bool() bool {
return bool(v)
}

0 comments on commit d4910a5

Please sign in to comment.