Browse Source

#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 years ago
parent
commit
0095e9965a
1 changed files with 1 additions and 0 deletions
  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)
 		{