Closed 0kenx closed 1 year ago
I have implemented this in my Rustic crate's modifiers
macro https://docs.rs/rustic/0.1.6/rustic/attr.modifiers.html
Oh that looks nice, thanks!
We're now collecting feature requests over here: https://dx.internetcomputer.org/topic/199
It would be useful for the guard function to support input parameters. For example, a guard function can be defined as
and the corresponding guard would be
#[update(guard = "has_role(Admin)")]