Webserver: -fix: Not allowed if you edit your own profile

This commit is contained in:
lukeIam committed 2013-12-13 18:03:02 +01:00
1 parent 86d0a245bf
commit a91def2ff8
1 file changed
+2 -2
@@ -81,8 +81,8 @@ namespace ServerLib
if (profile.ProfileId != -1) //-1 is the id for a new profile if (profile.ProfileId != -1) //-1 is the id for a new profile
{ {
if (!(_CheckRight(EUserRights.EditAllProfiles) if (CSessionControl.GetUserIdFromSession(sessionKey) != profile.ProfileId
|| CSessionControl.GetUserIdFromSession(sessionKey) == profile.ProfileId)) && !(_CheckRight(EUserRights.EditAllProfiles) ))
{ {
return; return;
} }