mateusznitka / protocolsmanager

GLPI Plugin to report users inventory
8 stars 12 forks source link

Problem when the admin who generates the report does not have access to user entity. #38

Closed Wolvverine closed 2 years ago

Wolvverine commented 3 years ago

By default, the report is placed in the user entity. The problem is when the user who generates the report does not have access to this entity. Because it is in a subordinate entity.

$ req = $ DB-> request ( 'glpi_users', ['id' => $ id]);

if ($ row = $ req-> next ()) { $ entity = $ row ["entities_id"]; }

I guess In that case the report should be saved in the generating entities ??

Wolvverine commented 3 years ago

Resolved: https://github.com/Wolvverine/protocolsmanager/commit/886fe64e7fcf6bca004827c277ba2b43304e37e3