Signed-off-by: Stéphane Jacob <sj@m4x.org>
- #1381: Adds levels to medals -JAC
- #1446: Adds field for sports and hobbies -JAC
- #1535: Moves and displays skills with mentoring informations -JAC
+ - #1554: Allows admins to modify unregisterd users' ref birthdate -JAC
* Search:
- #1284: If a country is chosen, only proposes its cities -JAC
$this->watched['freetext'] = true;
}
+ Platal::page()->assign('is_registered', ($this->owner->perms ? true : false));
}
protected function _fetchData()
}
}
}
- if ($this->orig['birthdate_ref'] == 0 && !S::user()->isMe($this->owner) && $this->changed['birthdate_ref']) {
+ if ($this->changed['birthdate_ref'] && S::admin() && !$this->owner->perms) {
XDB::execute('UPDATE profiles
SET birthdate_ref = {?}
WHERE pid = {?}',
<span class="titre">Date de naissance de référence</span>
</td>
<td>
- {if $birthdate_ref eq 0}
+ {if hasPerm('admin') && !$is_registered}
<input type="text" {if $errors.birthdate_ref}class="error"{/if} name="birthdate_ref" value="{$birthdate_ref}" />
{else}
{$birthdate_ref}