1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 08:17:12 +02:00

Fix issue processwire/processwire-issues#475 adjustment to argument type hint in ProcessUser

This commit is contained in:
Ryan Cramer
2018-01-25 09:50:11 -05:00
parent 02f1eadacc
commit 2cebe89e57

View File

@@ -362,10 +362,10 @@ class ProcessUser extends ProcessPageType {
* Perform a general check for saving the roles field, making sure added/removed roles are okay
*
* @param User $user
* @param User $page
* @param User|Page $page
*
*/
protected function checkSaveRoles(User $user, User $page) {
protected function checkSaveRoles(User $user, Page $page) {
if($user->isSuperuser()) return;
@@ -406,10 +406,10 @@ class ProcessUser extends ProcessPageType {
* Perform checks for when "user-admin-all" permission is installed and user does not have it
*
* @param User $user
* @param User $page
* @param User|Page $page
*
*/
protected function checkSaveUserAdminAll(User $user, User $page) {
protected function checkSaveUserAdminAll(User $user, Page $page) {
if($user->isSuperuser()) return;