You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An idea for this. Since both parameters used are the same on has() and add(), and seems it can be a recurrent pattern, why not add a new method add_idempotent() (or similar) to the trait Permissions that does exactly this? The method could have a default implementation using only has() and add() so there is no implementation on the permission pallet.
Originally posted by @lemunozm in #1160 (comment)
The text was updated successfully, but these errors were encountered: