summaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_utils_test.exs
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2019-01-09 06:41:25 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2019-01-09 06:44:50 +0000
commit0015d43e13508155462a9e5d18f19725fadd8931 (patch)
tree59dace5ff9017760a34aac20e2ee71d1637b8624 /test/web/common_api/common_api_utils_test.exs
parent74f48beec3bf78cd94cb6db5cbdb937505891eab (diff)
downloadpleroma-0015d43e13508155462a9e5d18f19725fadd8931.tar.gz
pleroma-0015d43e13508155462a9e5d18f19725fadd8931.zip
user: factor out illogical User.Info.superuser?/1.
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.
Diffstat (limited to 'test/web/common_api/common_api_utils_test.exs')
0 files changed, 0 insertions, 0 deletions