Set the current system user (the $user API variable)
Usage
$users->setCurrentUser(User $user);
Arguments
Name | Type(s) | Description |
---|---|---|
user | User |
API reference based on ProcessWire core version 3.0.244
“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull