Changeset 878 for trunk/Modules/User/UserModel.php
- Timestamp:
- Jun 25, 2020, 10:21:26 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/UserModel.php
r874 r878 283 283 } else 284 284 { 285 $this->PermissionGroupCache[$GroupId] = array(); 286 285 287 // If no permission combination exists in cache, do new check of database items 286 288 $DbResult = $this->Database->select('PermissionGroupAssignment', '*', '(`Group`="'.$GroupId. 287 289 '") AND (`AssignedGroup` IS NOT NULL)'); 288 $DbRow = array(); 289 while ($DbRow[] = $DbResult->fetch_array()); 290 $this->PermissionGroupCache[$GroupId] = $DbRow; 290 while ($DbRow = $DbResult->fetch_array()) 291 { 292 $this->PermissionGroupCache[$GroupId][] = $DbRow; 293 } 291 294 $PermissionExists = true; 292 295 }
Note:
See TracChangeset
for help on using the changeset viewer.