Fix: remote app can't show own profile under some circumstances
This commit is contained in:
1 parent
fda418c6dd
commit
3a2b309576
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user