Fix: remote app can't show own profile under some circumstances

This commit is contained in:
lukeIam committed 2014-11-21 18:55:40 +01:00
1 parent fda418c6dd
commit 3a2b309576
1 file changed
+1 -1
+1 -1
View File
@@ -128,7 +128,7 @@ namespace ServerLib
public SProfileData GetProfile(int profileId)
{
Guid sessionKey = _GetSession();
if (_CheckRight(EUserRights.ViewOtherProfiles) || CSessionControl.GetUserIdFromSession(sessionKey) == profileId)
if (CSessionControl.GetUserIdFromSession(sessionKey) == profileId || _CheckRight(EUserRights.ViewOtherProfiles))
{
if (CServer.GetProfileData == null)
return new SProfileData();