diff --git a/Vocaluxe/Base/CProfiles.cs b/Vocaluxe/Base/CProfiles.cs index 12440e5f..04354a5f 100644 --- a/Vocaluxe/Base/CProfiles.cs +++ b/Vocaluxe/Base/CProfiles.cs @@ -357,7 +357,7 @@ namespace Vocaluxe.Base public static bool IsProfileIDValid(Guid profileID) { - return _Profiles.ContainsKey(profileID); + return profileID != Guid.Empty && _Profiles.ContainsKey(profileID); } public static bool IsAvatarIDValid(int avatarID) diff --git a/Vocaluxe/Base/Server/CWebservice.cs b/Vocaluxe/Base/Server/CWebservice.cs index e44606a1..e2315c80 100644 --- a/Vocaluxe/Base/Server/CWebservice.cs +++ b/Vocaluxe/Base/Server/CWebservice.cs @@ -90,7 +90,7 @@ namespace Vocaluxe.Base.Server { Guid sessionKey = _GetSession(); - if (profile.ProfileId != Guid.Empty) //-1 is the id for a new profile + if (profile.ProfileId != Guid.Empty) //Guid.Empty is the id for a new profile { if (CSessionControl.GetUserIdFromSession(sessionKey) != profile.ProfileId && !(_CheckRight(EUserRights.EditAllProfiles)))