Webserver: -fix: Not allowed if you edit your own profile
This commit is contained in:
1 parent
86d0a245bf
commit
a91def2ff8
1 file changed
+2
-2
@@ -81,8 +81,8 @@ namespace ServerLib
|
||||
|
||||
if (profile.ProfileId != -1) //-1 is the id for a new profile
|
||||
{
|
||||
if (!(_CheckRight(EUserRights.EditAllProfiles)
|
||||
|| CSessionControl.GetUserIdFromSession(sessionKey) == profile.ProfileId))
|
||||
if (CSessionControl.GetUserIdFromSession(sessionKey) != profile.ProfileId
|
||||
&& !(_CheckRight(EUserRights.EditAllProfiles) ))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user