Changeset 964


Ignore:
Timestamp:
Jan 28, 2008, 2:34:04 PM (11 years ago)
Author:
Daniel Kahn Gillmor
Message:

jpdd: show signup list including already-full workshops if the user has "Manage Signups" privs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jpdd/class.jpdd.person.php

    r963 r964  
    123123        // but we also want to include every role with each affiliation, if possible.
    124124        // you must be able to edit roles to sign people up from this angle also:
    125         $editaudiences = $this->getM2MEditView('workshop', 'audience', 'Attending', 'Sign up for', NULL, create_function('$x', 'global $jpdd; return $x->_event_id == $jpdd->getActiveEventID() && !$x->isFull();'));
     125        $editaudiences = $this->getM2MEditView('workshop', 'audience', 'Attending', 'Sign up for', NULL, create_function('$x', 'global $jpdd; $full = false; '.($jpdd->_authenticated_user->HasAnyOfThesePrivileges('Manage Signups') ? ' if ($x->isFull()) $x->_title .= " (FULL)"; ' : '$full = $x->isFull(); ').' return $x->_event_id == $jpdd->getActiveEventID() && !$full;'));
    126126      }
    127127      return '<div>
Note: See TracChangeset for help on using the changeset viewer.