From a91def2ff84bd3935f40874702df8a2e415cceb7 Mon Sep 17 00:00:00 2001 From: lukeIam Date: Sun, 17 Nov 2013 20:27:16 +0100 Subject: [PATCH] Webserver: -fix: Not allowed if you edit your own profile --- ClientServerLib/ClientServerLib/CWebservice.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ClientServerLib/ClientServerLib/CWebservice.cs b/ClientServerLib/ClientServerLib/CWebservice.cs index ec51c0da..7a6d4a3d 100644 --- a/ClientServerLib/ClientServerLib/CWebservice.cs +++ b/ClientServerLib/ClientServerLib/CWebservice.cs @@ -81,8 +81,8 @@ namespace ServerLib if (profile.ProfileId != -1) //-1 is the id for a new profile { - if (!(_CheckRight(EUserRights.EditAllProfiles) - || CSessionControl.GetUserIdFromSession(sessionKey) == profile.ProfileId)) + if (CSessionControl.GetUserIdFromSession(sessionKey) != profile.ProfileId + && !(_CheckRight(EUserRights.EditAllProfiles) )) { return; }