case Right::EMAILONFAVE:
$result = !$this->isSandboxed();
break;
+ case Right::WEBLOGIN:
+ $result = !$this->isSilenced();
+ break;
+ case Right::API:
+ $result = !$this->isSilenced();
+ break;
case Right::BACKUPACCOUNT:
$result = common_config('profile', 'backup');
break;
*
* @param User $cur Current user
*
- * @return array representation of <statusnet:profile_info> element
+ * @return array representation of <statusnet:profile_info> element or null
*/
function profileInfo($cur)
{
- $profileInfoAttr = array();
+ $profileInfoAttr = array('local_id' => $this->id);
if ($cur != null) {
// Whether the current user is a subscribed to this profile