Commit 7f4cb47c authored by Ruslan Kabalin's avatar Ruslan Kabalin
Browse files

Fixed warning on User Add page.



defaultvalue = 1 in institution select only works for site admin.
Signed-off-by: default avatarRuslan Kabalin <ruslan.kabalin@luns.net.uk>
parent cf73fd97
......@@ -130,6 +130,9 @@ $elements = array(
),
);
if (!$USER->get('admin')) {
unset ($elements['authinstance']['defaultvalue']);
}
$form = pieform(array(
'name' => 'adduser',
......
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