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

@@ -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'])) {