id)) { return false; } $allowedUserIds = array_filter( array_map('intval', explode(',', $configuredUserIds)), function ($userId) { return $userId > 0; } ); self::$canManage = in_array((int) $user->id, $allowedUserIds, true); return self::$canManage; } }