From 042dc016193f42766d584a1c4309130553a639ad Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Tue, 6 Aug 2024 11:39:25 +0200 Subject: src/accounts-service-access.vala: Filter out prefixed users --- src/accounts-service-access.vala | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/accounts-service-access.vala b/src/accounts-service-access.vala index 1b66370..9372aa9 100644 --- a/src/accounts-service-access.vala +++ b/src/accounts-service-access.vala @@ -1,6 +1,6 @@ /* * Copyright 2016 Canonical Ltd. - * Copyright 2021-2023 Robert Tari + * Copyright 2021-2024 Robert Tari * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -144,6 +144,13 @@ public class AccountsServiceAccess : Object } } + bool bPrefix = username.has_prefix ("*"); + + if (bPrefix) + { + return; + } + // Get master AccountsService object DBusProxy accounts_proxy; -- cgit v1.2.3