Commit 417722a3 authored by Leigh Stoller's avatar Leigh Stoller

Minor bug fix.

parent 3a8a3435
......@@ -496,6 +496,11 @@ if ($new_type) {
" attrkey='$key', attrtype='$type', ".
" attrvalue='$value' ");
}
# And a group policy that prevents new type from being used.
DBQueryFatal("replace into group_policies ".
"(pid_idx, gid_idx, pid, gid, policy, auxdata, count) ".
"values (0, 0, '-', '-', 'type', '$type', 0)");
}
else {
DBQueryFatal("update node_types set ".
......
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