Task #1622

check itemtype right on type dropdowns

Added by moyo over 4 years ago. Updated about 2 years ago.

Status:Closed Start date:08/25/2009
Priority:Normal Due date:
Assignee:yllen % Done:

100%

Category:Framework
Target version:0.83.1

Description

see http://www.glpi-project.org/forum/viewtopic.php?id=16099

foreach($types as $key=>$type) {
if(!haveTypeRight($type,'r')) {
unset($types[$key]);
}
}

Qui pourrait surement être appliqué à pas mal de dropdowns dont par exemple : dropdownDeviceTypes

En bref ne pas proposer dans les dropdowns les types aucun on a pas accès.


Related issues

duplicates GLPI-PROJECT - Bug #3450: Associated items for documents Closed 04/05/2012

History

Updated by moyo about 4 years ago

  • Target version changed from 0.78 to 0.80

pas sur que cela soit pertinent.
Devrait être géré en amont d'appeler les dropdown de types.
En effet on peut vouloir associer un élément sans avoir le droit de vision dessus (exemple helpdesk)

Updated by moyo over 3 years ago

  • Target version changed from 0.80 to 33

Updated by moyo about 3 years ago

  • Target version changed from 33 to 0.85

Updated by moyo about 2 years ago

  • Target version changed from 0.85 to 0.83.1

Updated by moyo about 2 years ago

  • Category changed from Common to Framework
  • Assignee set to yllen

Updated by moyo about 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Updated by yllen about 2 years ago

  • Status changed from Resolved to Closed

Tested in 0.80 : <dle> c'est cool :-) et en plus ça marche maintenant, j'ai les bons droits ;)

Also available in: Atom PDF