Commit b20a89af authored by Leigh Stoller's avatar Leigh Stoller

Kill off more Create OSID menu options for non-admin types.

parent 38931535
......@@ -985,8 +985,10 @@ if (! isset($node)) {
}
WRITESUBMENUBUTTON("Create a new Image Descriptor",
"newimageid_ez.php3");
WRITESUBMENUBUTTON("Create a new OS Descriptor",
"newosid_form.php3");
if ($isadmin) {
WRITESUBMENUBUTTON("Create a new OS Descriptor",
"newosid_form.php3");
}
WRITESUBMENUBUTTON("Image Descriptor list",
"showimageid_list.php3");
WRITESUBMENUBUTTON("OS Descriptor list",
......
......@@ -17,6 +17,7 @@ PAGEHEADER("Image Descriptor");
#
$uid = GETLOGIN();
LOGGEDINORDIE($uid);
$isadmin = ISADMIN($uid);
#
# Verify form arguments.
......@@ -46,8 +47,10 @@ WRITESUBMENUBUTTON("Delete this Image Descriptor",
"deleteimageid.php3?imageid=$fooid");
WRITESUBMENUBUTTON("Create a new Image Descriptor",
"newimageid_ez.php3");
WRITESUBMENUBUTTON("Create a new OS Descriptor",
"newosid_form.php3");
if ($isadmin) {
WRITESUBMENUBUTTON("Create a new OS Descriptor",
"newosid_form.php3");
}
WRITESUBMENUBUTTON("Image Descriptor list",
"showimageid_list.php3");
WRITESUBMENUBUTTON("OS Descriptor list",
......
......@@ -17,6 +17,7 @@ PAGEHEADER("OS Descriptor Information");
#
$uid = GETLOGIN();
LOGGEDINORDIE($uid);
$isadmin = ISADMIN($uid);
#
# Verify form arguments.
......@@ -41,8 +42,10 @@ SUBPAGESTART();
SUBMENUSTART("More Options");
WRITESUBMENUBUTTON("Delete this OS Descriptor",
"deleteosid.php3?osid=$osid");
WRITESUBMENUBUTTON("Create a new OS Descriptor",
"newosid_form.php3");
if ($isadmin) {
WRITESUBMENUBUTTON("Create a new OS Descriptor",
"newosid_form.php3");
}
WRITESUBMENUBUTTON("Create a new Image Descriptor",
"newimageid_ez.php3");
WRITESUBMENUBUTTON("OS Descriptor list",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment