Changeset 183
- Timestamp:
- Jan 30, 2007 10:31:21 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/jpdd/class.jpdd.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jpdd/class.jpdd.php
r182 r183 92 92 if ($this->_authenticated_user->hasAnyOfThesePrivileges('List Rooms')) 93 93 $links['Rooms'] = 'room'; 94 if ($this->_authenticated_user->hasAllOfThesePrivileges('Update Workshops', 'Edit People', 'Edit Categories')) 94 if ($this->_authenticated_user->hasAllOfThesePrivileges('Update Workshops', 'Edit People', 'Edit Categories')) { 95 95 $links['Review Signups'] = 'overview'; 96 $links['Get Printouts'] = 'printout'; 97 } 96 98 if ($this->_authenticated_user->hasAllOfThesePrivileges('Send Broadcast')) 97 99 $links['E-mail Alert'] = 'broadcast'; … … 371 373 $pdfs = $this->getPDFFunctions(); 372 374 if (in_array($this->_type, array_keys($pdfs))) { 373 if ($this->isAuthenticated() && $this->_authenticated_user->hasAllOfThesePrivileges('Edit People', 'Update Workshops' )) {375 if ($this->isAuthenticated() && $this->_authenticated_user->hasAllOfThesePrivileges('Edit People', 'Update Workshops', 'Edit Categories')) { 374 376 $f = $pdfs[$this->_type]['function']; 375 377 require_once('class.jpdd.pdf.php'); … … 378 380 } else 379 381 $this->permissionDenied('This printout is not for you.'); 382 } elseif ($this->isEmpty($this->_type)) { 383 return $this->getPDFLinkList(); 380 384 } 381 385 } … … 404 408 'table.pdf' => array('description' => 'pages for the entrance table', 405 409 'function' => 'addTablePDFs')); 410 } 411 412 function getPDFLinkList() { 413 $z = $this->getPDFFunctions(); 414 return '<ul>'.join('', array_map(create_function('$t, $x', 'global $jpdd; return "<li><a href=\"".$jpdd->Path("printout", $t)."\">".$x["description"]."</a>\n";') , array_keys($z), $z)).'</ul>'; 406 415 } 407 416
Note: See TracChangeset
for help on using the changeset viewer.

