Merge pull request #112 from lukeIam/develop
Fix: remote app can't show own profile under some circumstances
This commit is contained in:
commit
0dd7c039f0
1 file changed
+1
-1
@@ -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();
|
||||||
|
|||||||
Reference in new issue
Block a user