Closed (fixed)
Project:
Invite
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
20 Mar 2007 at 17:16 UTC
Updated:
29 Oct 2007 at 07:51 UTC
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
Comment #1
smk-ka commentedThis has been fixed by http://drupal.org/cvs?commit=84524 by adding a new access permission called 'track invitations'.
Comment #2
(not verified) commented