Fix: can't show own profile

This commit is contained in:
lukeIam committed 2014-03-02 12:02:30 +01:00
1 parent 3144ea24b9
commit c93262fc54
1 file changed
+1 -1
@@ -106,7 +106,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)
{ {