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. |
||
|---|---|---|
| .. | ||
| mix/tasks/pleroma | ||
| pleroma | ||
| jason_types.ex | ||
| transports.ex | ||
| xml_builder.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. |
||
|---|---|---|
| .. | ||
| mix/tasks/pleroma | ||
| pleroma | ||
| jason_types.ex | ||
| transports.ex | ||
| xml_builder.ex | ||