fix user dashboard activity
This commit is contained in:
parent
686bf423cd
commit
3904150146
@ -210,7 +210,7 @@ class ActivityBehaviors
|
|||||||
__('updating user preference'),
|
__('updating user preference'),
|
||||||
__('"%s" user preference has been updated'),
|
__('"%s" user preference has been updated'),
|
||||||
'adminAfterDashboardOptionsUpdate',
|
'adminAfterDashboardOptionsUpdate',
|
||||||
[self::class, 'userPreference']
|
[self::class, 'userOption']
|
||||||
));
|
));
|
||||||
|
|
||||||
// from BEHAVIOR adminBeforeUserDelete in admin/users.php
|
// from BEHAVIOR adminBeforeUserDelete in admin/users.php
|
||||||
@ -449,6 +449,11 @@ class ActivityBehaviors
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function userPreference(Cursor $cur, string $user_id): void
|
public static function userPreference(Cursor $cur, string $user_id): void
|
||||||
|
{
|
||||||
|
self::userOption($user_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function userOption(string $user_id): void
|
||||||
{
|
{
|
||||||
$user = dcCore::app()->getUser($user_id);
|
$user = dcCore::app()->getUser($user_id);
|
||||||
if ($user->isEmpty()) {
|
if ($user->isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user