user rights in api user array

This commit is contained in:
Hannes Mannerheim 2016-02-27 02:00:25 +01:00
parent f2a6bbf685
commit 5dc4b74fb7

View File

@ -821,6 +821,13 @@ class QvitterPlugin extends Plugin {
// silenced? // silenced?
$twitter_user['is_silenced'] = $profile->isSilenced(); $twitter_user['is_silenced'] = $profile->isSilenced();
// rights
$twitter_user['rights'] = array();
$twitter_user['rights']['delete_user'] = $profile->hasRight(Right::DELETEUSER);
$twitter_user['rights']['delete_others_notice'] = $profile->hasRight(Right::DELETEOTHERSNOTICE);
$twitter_user['rights']['silence'] = $profile->hasRight(Right::SILENCEUSER);
$twitter_user['rights']['sandbox'] = $profile->hasRight(Right::SANDBOXUSER);
// sandboxed? // sandboxed?
$twitter_user['is_sandboxed'] = $profile->isSandboxed(); $twitter_user['is_sandboxed'] = $profile->isSandboxed();