Commit fac9c573 authored by Leigh B Stoller's avatar Leigh B Stoller

Oops, do not show a delete button for the main project group.

Also fix a problem with the unload handler.
parent 81ed6e38
......@@ -262,7 +262,7 @@ $(function ()
// Warn user if they have not saved changes.
$(window).on('beforeunload.portal', function() {
if (! modified)
return null;
return undefined;
return "You have unsaved changes!";
});
}
......
<?php
#
# Copyright (c) 2000-2016 University of Utah and the Flux Group.
# Copyright (c) 2000-2017 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -53,6 +53,10 @@ $emulablink = "$TBBASE/showgroup.php3?group=" . $group->gid_idx();
$canapprove = $group->AccessCheck($this_user, $TB_PROJECT_ADDUSER) ? 1 : 0;
$candelete = $group->AccessCheck($this_user, $TB_PROJECT_DELGROUP) ? 1 : 0;
$canedit = $group->AccessCheck($this_user, $TB_PROJECT_EDITGROUP) ? 1 : 0;
# Never allowed to delete project group.
if ($group->pid() == $group->gid()) {
$candelete = 0;
}
echo "<link rel='stylesheet'
href='css/tablesorter-blue.css'>\n";
......
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