Hi,

I wanted all users on my site - both anonymous and registered - to send invitations. However, the current impelemtation of ./invite page shows all pending invitations for a user. I did not want 1 anonymous user to see the invites another anonymous user. I suggest a switch on the admin page for the invite module which asks "Show anonymous users invitation list?". I hardcoded this change in, but I'm happy to make a patch if you can provide some insight to other parts of the invite module this could affect.

nice module btw!!

-thejerz

 /* Do not display addresses for anonymous users */
  if ($user->uid && count($items) > 0) {
    $headers = array(t('Email'), t('Status'), ' ');
    $table = theme('table', $headers, $items, array('id' => 'invite_table'));
  }
  elseif ($user->uid) {
  	$table = t('You have not sent any invitations yet.');
  }
  else{
    $table = t('Anonymous users cannot view sent invitations.  Please create an account if you send many invitations!');
  }

Comments

smk-ka’s picture

Status: Postponed (maintainer needs more info) » Fixed

This has been fixed by http://drupal.org/cvs?commit=84524 by adding a new access permission called 'track invitations'.

Anonymous’s picture

Status: Fixed » Closed (fixed)