From 82780d85f8472c09e296c81e8ea83d7953f3105c Mon Sep 17 00:00:00 2001 From: james Date: Wed, 16 Feb 2005 22:55:37 +0000 Subject: [PATCH] only a superuser can access the access controls for users --- admin/committees.php | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/admin/committees.php b/admin/committees.php index dedd40f..880d3b9 100644 --- a/admin/committees.php +++ b/admin/committees.php @@ -278,17 +278,20 @@ if($_GET['edit'] || $edit) echo "".i18n("Phone (Work)").":phonework\" />\n"; echo "".i18n("Phone (Cell)").":phonecell\" />\n"; echo "".i18n("Fax").":fax\" />\n"; - echo "
"; - echo "".i18n("Access Controls").":"; - if($r->access_admin=="Y") $checked="checked=\"checked\""; else $checked=""; - echo " ".i18n("Administration")."
"; - if($r->access_config=="Y") $checked="checked=\"checked\""; else $checked=""; - echo " ".i18n("Configuration")."
"; - if($r->access_super=="Y") $checked="checked=\"checked\""; else $checked=""; - echo " ".i18n("Superuser")."
"; + if(auth_has_access("super")) + { + echo "
"; + echo "".i18n("Access Controls").":"; + if($r->access_admin=="Y") $checked="checked=\"checked\""; else $checked=""; + echo " ".i18n("Administration")."
"; + if($r->access_config=="Y") $checked="checked=\"checked\""; else $checked=""; + echo " ".i18n("Configuration")."
"; + if($r->access_super=="Y") $checked="checked=\"checked\""; else $checked=""; + echo " ".i18n("Superuser")."
"; - echo ""; + echo ""; + } echo "";