mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-12-31 21:00:33 +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
@@ -1580,14 +1580,16 @@ class AdminController
|
||||
*/
|
||||
public function taskContinue()
|
||||
{
|
||||
$data = (array) $this->data;
|
||||
|
||||
if ($this->view == 'users') {
|
||||
$this->setRedirect("{$this->view}/{$this->post['username']}");
|
||||
$this->setRedirect("{$this->view}/{$data['username']}");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($this->view == 'groups') {
|
||||
$this->setRedirect("{$this->view}/{$this->post['groupname']}");
|
||||
$this->setRedirect("{$this->view}/{$data['groupname']}");
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1596,7 +1598,6 @@ class AdminController
|
||||
return false;
|
||||
}
|
||||
|
||||
$data = (array) $this->data;
|
||||
$route = $data['route'] != '/' ? $data['route'] : '';
|
||||
$folder = ltrim($data['folder'], '_');
|
||||
if (!empty($data['modular'])) {
|
||||
|
||||
Reference in New Issue
Block a user