mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 17:24:46 +02:00
Fix issue processwire/processwire-issues#1673
This commit is contained in:
@@ -262,6 +262,13 @@ class ProcessUser extends ProcessPageType {
|
||||
*/
|
||||
public function getPage() {
|
||||
$page = parent::getPage();
|
||||
if(!$page instanceof User) {
|
||||
if(wireInstanceOf($page, 'RepeaterPage')) {
|
||||
/** @var RepeaterPage $page */
|
||||
$page = $page->getForPageRoot();
|
||||
}
|
||||
}
|
||||
/** @var User $page */
|
||||
if($page->id && !$page->get('_rolesPrevious') && $this->wire('input')->post('roles') !== null) {
|
||||
$page->setQuietly('_rolesPrevious', clone $page->roles);
|
||||
}
|
||||
|
Reference in New Issue
Block a user