any actual callee will be dealing with a User struct to begin with, so just check the child struct inside User.superuser?/1 with pattern matching. |
||
|---|---|---|
| .. | ||
| info.ex | ||
any actual callee will be dealing with a User struct to begin with, so just check the child struct inside User.superuser?/1 with pattern matching. |
||
|---|---|---|
| .. | ||
| info.ex | ||