summaryrefslogtreecommitdiffstats
path: root/glpi-0.84-bug5218.patch
blob: 062b68de59195fdc31e8c7b8a92d3a4d645da0db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: branches/0.84-bugfixes/inc/user.class.php
===================================================================
--- branches/0.84-bugfixes/inc/user.class.php	(révision 23406)
+++ branches/0.84-bugfixes/inc/user.class.php	(révision 23407)
@@ -556,7 +556,9 @@
       // Add default profile
       if (!$rulesplayed) {
          $affectation = array();
-         if (isset($this->input['_profiles_id']) && $this->input['_profiles_id']) {
+         if (isset($this->input['_profiles_id']) && $this->input['_profiles_id']
+            && Profile::currentUserHaveMoreRightThan(array($this->input['_profiles_id']))
+            ) {
             $profile                   = $this->input['_profiles_id'];
             // Choosen in form, so not dynamic
             $affectation['is_dynamic'] = 0;