소스 검색

#870: when a user deletes all her/his shortcuts at once, this was deleting all the shortcuts for all users.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3099 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 11 년 전
부모
커밋
0095e9965a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      pages/ajax.render.php

+ 1 - 0
pages/ajax.render.php

@@ -1042,6 +1042,7 @@ EOF
 
 		case 'shortcut_delete_go':
 		$oSearch = new DBObjectSearch('Shortcut');
+		$oSearch->AddCondition('user_id', UserRights::GetUserId(), '=');
 		$aShortcuts = utils::ReadMultipleSelection($oSearch);
 		foreach ($aShortcuts as $iShortcut)
 		{