mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
Apply user alias ownership check consistently
This commit is contained in:
1 parent
3ab0104d1a
commit
d60ff99e77
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user