1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-22 06:13:57 +02:00

Some updates to PagesType class and update all PagesType hooks from deprecated to fully functional per processwire/processwire-issues#360

This commit is contained in:
Ryan Cramer
2019-03-26 10:08:26 -04:00
parent 768b27f4c8
commit f121425f0d
4 changed files with 137 additions and 50 deletions

View File

@@ -157,7 +157,7 @@ class Users extends PagesType {
$role = $this->wire('roles')->get($this->wire('config')->guestUserRolePageID);
if($role->id && !$user->hasRole($role)) $user->addRole($role);
}
return array();
return parent::___saveReady($user);
}
}