Merge pull request #524 from getgrav/feature/show-account-page-for-login-acl

Show account page for users with admin.login ACL
This commit is contained in:
Flavio Copes
2016-04-27 19:48:16 +02:00
committed by Andy Miller
parent a8fd34c67d
commit 33e363affa
5 changed files with 12 additions and 7 deletions

View File

@@ -336,6 +336,11 @@ class Admin
$obj = User::load(preg_replace('|users/|', '', $type));
$obj->merge($post);
$data[$type] = $obj;
} elseif (preg_match('|user/|', $type)) {
$obj = User::load(preg_replace('|user/|', '', $type));
$obj->merge($post);
$data[$type] = $obj;
} elseif (preg_match('|config/|', $type)) {
$type = preg_replace('|config/|', '', $type);