Commit 092663f9 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Making check for admin more reliable (Bug #1300741)"

parents b39a55c3 377b4a1d
......@@ -1000,7 +1000,7 @@ function requiredfields_submit(Pieform $form, $values) {
if ($field == 'email') {
$email = $values['email'];
// Need to update the admin email on installation
if ($USER->get('id') == '1') {
if ($USER->get('admin')) {
$oldemail = get_field('usr', 'email', 'id', $USER->get('id'));
if ($oldemail == 'admin@example.org') {
// we are dealing with the dummy email that is set on install
......
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