commit 25735ef67b8f05b72da1722996affa29c98f7cae parent 9d3da08a8dc1c3a067f4a3a5d93e3677286f63f0 Author: dankert <devnull@localhost> Date: Wed, 4 Nov 2009 09:48:36 +0100 Readonly-Status berücksichtigen. Diffstat:
actionClasses/ProjectAction.class.php | | | 25 | +++++++++++++++++++++++++ |
1 file changed, 25 insertions(+), 0 deletions(-)
diff --git a/actionClasses/ProjectAction.class.php b/actionClasses/ProjectAction.class.php @@ -307,4 +307,29 @@ class ProjectAction extends Action phpinfo(); } + + + + + + /** + * @param String $name Menüpunkt + * @return boolean true, falls Menüpunkt zugelassen + */ + function checkMenu( $name ) + { + global $conf; + + switch( $name ) + { + case 'remove': + return !readonly(); + case 'maintenance': + return !readonly(); + + default: + return true; + } + } + } \ No newline at end of file