Hi,
is it possible that i can logout other users from a hook?
my current hook looks simething like that.
'user.changeRole:after' => function (Kirby\Cms\User $newUser, Kirby\Cms\User $oldUser) {
// your code goes here
if($newUser->role() == 'keinZugang') {
$newUser->logout();
}
},
Thanks in advance.