Merge pull request #112 from lukeIam/develop

Fix: remote app can't show own profile under some circumstances
This commit is contained in:
Stephan Sundermann committed 2014-11-21 19:22:12 +01:00
commit 0dd7c039f0
1 file changed
+1 -1
+1 -1
View File
@@ -128,7 +128,7 @@ namespace ServerLib
public SProfileData GetProfile(int profileId) public SProfileData GetProfile(int profileId)
{ {
Guid sessionKey = _GetSession(); Guid sessionKey = _GetSession();
if (_CheckRight(EUserRights.ViewOtherProfiles) || CSessionControl.GetUserIdFromSession(sessionKey) == profileId) if (CSessionControl.GetUserIdFromSession(sessionKey) == profileId || _CheckRight(EUserRights.ViewOtherProfiles))
{ {
if (CServer.GetProfileData == null) if (CServer.GetProfileData == null)
return new SProfileData(); return new SProfileData();