Skip to content

Commit

Permalink
feat: add cacheable param implementation for AbacAttrList
Browse files Browse the repository at this point in the history
Signed-off-by: Закиров Алихан <[email protected]>
  • Loading branch information
alikhanz authored and alikhanzt committed Dec 3, 2021
1 parent 073d037 commit 3bda02c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/abac.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,8 @@ func resolveABAC(obj string) (AbacAttrList, error) {

return attrList, nil
}

func (attr AbacAttrList) GetCacheKey() string {
res, _ := MakeABAC(&attr)
return res
}

0 comments on commit 3bda02c

Please sign in to comment.