Commit 39637ec2 authored by Leigh B Stoller's avatar Leigh B Stoller

Show new experiment name box to admins only.

parent f2e66802
...@@ -486,7 +486,7 @@ function SPITFORM($formfields, $newuser, $errors) ...@@ -486,7 +486,7 @@ function SPITFORM($formfields, $newuser, $errors)
# Spit out an experient name box, which is optional and prefilled # Spit out an experient name box, which is optional and prefilled
# with a default. # with a default.
# #
if ($this_user) { if ($this_user && ISADMIN()) {
$thisclass = "form-group"; $thisclass = "form-group";
if ($errors && array_key_exists("name", $errors)) { if ($errors && array_key_exists("name", $errors)) {
$thisclass .= " has-error"; $thisclass .= " has-error";
......
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