public static function IsCandidate(User $user, $candidate) { if (!$user->checkPerms(User::PERM_MAIL)) { return false; } return count(S::v('mx_failures', array())) > 0; }
public static function IsCandidate(User $user, $candidate) { if (!$user->checkPerms(User::PERM_MAIL)) { return false; } return S::v('no_redirect'); }
public static function IsCandidate(User $user, $candidate) { if (!$user->checkPerms(User::PERM_MAIL)) { return false; } require_once 'emails.inc.php'; $active = Email::is_active_storage($user, 'imap'); if ($active) { Reminder::MarkCandidateAsAccepted($user->id(), $candidate); } return !$active; }
public static function IsCandidate(User $user, $candidate) { if (!$user->checkPerms(User::PERM_MAIL)) { return false; } require_once 'googleapps.inc.php'; $isSubscribed = GoogleAppsAccount::account_status($user->id()); if ($isSubscribed == 'disabled') { $isSubscribed = false; } if ($isSubscribed) { Reminder::MarkCandidateAsAccepted($user->id(), $candidate); } return !$isSubscribed; }
public function canSeeEarlyResults(User $user) { return $user->id() == $this->creator || $user->checkPerms('admin'); }
public static function get_allowed_storages(User $user) { global $globals; $storages = array(); // Google Apps storage is available for users with valid Google Apps account. require_once 'googleapps.inc.php'; if ($user->checkPerms('gapps') && $globals->mailstorage->googleapps_domain && GoogleAppsAccount::account_status($user->id()) == 'active') { $storages[] = 'googleapps'; } // IMAP storage is always visible to administrators, and is allowed for // everyone when the service is marked as 'active'. if ($globals->mailstorage->imap_active || S::admin()) { $storages[] = 'imap'; } return $storages; }