Fix `rights` in TwitterAPI's user entity being present only for
authorrinpatch <rinpatch@sdf.org>
Sun, 28 Apr 2019 16:42:43 +0000 (19:42 +0300)
committerrinpatch <rinpatch@sdf.org>
Sun, 28 Apr 2019 16:42:43 +0000 (19:42 +0300)
commit61ca2f7a4ed1bfa5b5ae4da5b28ca3c546b1e141
treedfb1ca1c6ca009c159150afb6a9035f2e8519d9d
parent002ea343f8c6dc9669bce91942f835a2c7cc6ae7
Fix `rights` in TwitterAPI's user entity being present only for
Admins/Moderators

In !1093 I reused `maybe_with_role` for `rights` object, however I
missed that `maybe_with_role` is called only for admins/moderators.
lib/pleroma/web/twitter_api/views/user_view.ex
test/web/twitter_api/views/user_view_test.exs