Bug #4985

Improper use of profiles in the session

Added by yeti over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:06/27/2014
Priority:NormalDue date:
Assignee:yeti% Done:

0%

Category:Framework
Target version:2.3.2

Description

In fact, Profile::changeProfile method add entries to $_SESSION['glpiactiveprofile'].

But this variable ($_SESSION['glpiactiveprofile']) is used by Profile::currentUserHaveMoreRightThan method for construct sql query.

If I declare an object "car", the generated sql query fetches a column `glpi_profiles.PluginGenericobjectCar` which does not exist.

Associated revisions

Revision 309
Added by yeti over 5 years ago

update changeProfile method, see #4985

History

#1 Updated by yeti over 5 years ago

  • Target version set to 2.3.2

#2 Updated by mtpl over 5 years ago

  • Category set to Framework

#3 Updated by yeti over 5 years ago

  • Status changed from New to Resolved

#4 Updated by mtpl over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF