benefits: Don't allow non-members to access benefits page.
authorDavid Thompson <davet@gnu.org>
Thu, 6 Nov 2014 21:22:34 +0000 (16:22 -0500)
committerDavid Thompson <davet@gnu.org>
Thu, 6 Nov 2014 21:26:20 +0000 (16:26 -0500)
commit7d701e338ec70d30f307e9c92fcbf1e37447d8fd
tree01f2113bb5ec096216b18a7028622392322bc227
parent2297524f0ff8695ba636c5c8165d1105317c0be8
benefits: Don't allow non-members to access benefits page.

* CRM/Memberdashboard/Page/Benefits.php (CRM_Memberdashboard_Page_Benefits)
  [hasValidMembership]: New method.
  [postProcess]: Restrict POST actions to members only.
  [run]: Pass 'hasValidMembership' variable to smarty template.
* templates/CRM/Memberdashboard/Page/Benefits.tpl: Display an access
  denied page if the user is a non-member.
CRM/Memberdashboard/Page/Benefits.php
templates/CRM/Memberdashboard/Page/Benefits.tpl