![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Pear Pear programming, this is a very complex subject as with using pear with php can be a difficult task for some, so lets talk pear. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| wiesemann Thu May 17 20:34:30 2007 UTC Modified files: /pearweb/include pear-format-html.php Log: - fix for Bug #10985: Showing panes where user has no rights http://cvs.php.net/viewvc.cgi/pearwe...&diff_format=u Index: pearweb/include/pear-format-html.php diff -u pearweb/include/pear-format-html.php:1.210 pearweb/include/pear-format-html.php:1.211 --- pearweb/include/pear-format-html.php:1.210 Sun May 13 20:01:28 2007 +++ pearweb/include/pear-format-html.php Thu May 17 20:34:30 2007 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: pear-format-html.php,v 1.210 2007/05/13 20:01:28 davidc Exp $ + $Id: pear-format-html.php,v 1.211 2007/05/17 20:34:30 wiesemann Exp $ */ PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler'); @@ -1052,11 +1052,19 @@ 'title' => 'View wiki area')*/ ); - if (isset($auth_user) && is_object($auth_user)) { + if (isset($auth_user) && is_object($auth_user) && + (user::maintains($auth_user->handle, $pacid, 'lead') || + user::isAdmin($auth_user->handle) || + user::isQA($auth_user->handle)) + ) { $nav_items['Edit'] = array('url' => '/package-edit.php?id='.$pacid, 'title' => 'Edit this package'); $nav_items['Edit Maintainers'] = array('url' => '/admin/package-maintainers.php?pid='.$pacid, 'title' => 'Edit the maintainers of this package'); + } + if (isset($auth_user) && is_object($auth_user) && + ($auth_user->isAdmin() || $auth_user->isQA()) + ) { $nav_items['Delete'] = array('url' => '/package-delete.php?id='.$pacid, 'title' => 'Delete this package'); } | |||
| Featured Websites | ||||
|
![]() |
| Tags: cvs, include, pearformathtmlphp, pearweb |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cvs: pearweb /include pear-database-package.php | Mark Wiesemann | Pear | 0 | 05-20-2007 7:42 PM |
| cvs: pearweb /include pear-format-html.php | David Coallier | Pear | 0 | 05-20-2007 7:42 PM |
| cvs: pearweb /include pear-format-html.php | David Coallier | Pear | 0 | 05-20-2007 7:42 PM |
| cvs: pearweb /include/notes ManualNotes.class.php /templates/notes note.tpl.php | Mark Wiesemann | Pear | 0 | 05-20-2007 7:42 PM |
| cvs: pearweb /include pear-database-user.php | Greg Beaver | Pear | 0 | 05-20-2007 7:42 PM |
| Featured Websites | ||||
|