Apply user alias ownership check consistently

This commit is contained in:
Rodrigo Cortés Cano authored and Christian Boltz committed 2026-07-22 18:13:16 +00:00
1 parent 3ab0104d1a
commit d60ff99e77
1 file changed
+1 -1
+1 -1
View File
@@ -171,7 +171,7 @@ class AliasHandler extends PFAHandler
*/
public function init(string $id): bool
{
if (!$this->is_admin && !$this->new) {
if (!$this->is_admin) {
if (!Config::bool('edit_alias') || strtolower($id) !== strtolower($this->username)) {
$this->errormsg[] = Config::lang_f('pEdit_alias_result_error', $id);
return false;