mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 08:26:59 +02:00
Fixed avatar image with flex user
This commit is contained in:
@@ -652,12 +652,12 @@ class Admin
|
||||
$data[$type] = $obj;
|
||||
} elseif (preg_match('|users/|', $type)) {
|
||||
$obj = User::load(preg_replace('|users/|', '', $type));
|
||||
$obj->merge($this->cleanUserPost($post));
|
||||
$obj->update($this->cleanUserPost($post));
|
||||
|
||||
$data[$type] = $obj;
|
||||
} elseif (preg_match('|user/|', $type)) {
|
||||
$obj = User::load(preg_replace('|user/|', '', $type));
|
||||
$obj->merge($this->cleanUserPost($post));
|
||||
$obj->update($this->cleanUserPost($post));
|
||||
|
||||
$data[$type] = $obj;
|
||||
} elseif (preg_match('|config/|', $type)) {
|
||||
|
||||
Reference in New Issue
Block a user