Merge branch 'features/admin-api-user-views' into 'develop'
User/Account views: Add rights.admin Closes #472 See merge request pleroma/pleroma!589
This commit is contained in:
commit
90e157ef80
3 changed files with 19 additions and 6 deletions
|
|
@ -964,7 +964,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|
|||
max_toot_chars: limit
|
||||
},
|
||||
rights: %{
|
||||
delete_others_notice: !!user.info.is_moderator
|
||||
delete_others_notice: !!user.info.is_moderator,
|
||||
admin: !!user.info.is_admin
|
||||
},
|
||||
compose: %{
|
||||
me: "#{user.id}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue