mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-07 16:13:02 +01:00
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:
committed by
Andy Miller
parent
a8fd34c67d
commit
33e363affa
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user