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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user