/** * Show emails of a user * * @param $user User object * * @return nothing **/ static function showForUser(User $user) { $users_id = $user->getID(); if (!$user->can($users_id, READ) && $users_id != Session::getLoginUserID()) { return false; } $canedit = $user->can($users_id, UPDATE) || $users_id == Session::getLoginUserID(); parent::showChildsForItemForm($user, '_useremails', $canedit); }