Skip to content

Commit

Permalink
[1658]: Add missing comment on AccessGrant.Contains.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpicyLemon committed Sep 19, 2023
1 parent 52063e3 commit 425b67d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x/exchange/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ func (a AccessGrant) ValidateInField(field string) error {
return nil
}

// Contains returns true if this access grant contains the provided permission.
func (a AccessGrant) Contains(perm Permission) bool {
for _, p := range a.Permissions {
if p == perm {
Expand Down

0 comments on commit 425b67d

Please sign in to comment.