Changeset 425 for branches/Modular/Modules/User/User.php
- Timestamp:
- Oct 10, 2012, 12:21:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Modular/Modules/User/User.php
r424 r425 189 189 { 190 190 // Check group-group relation 191 $DbResult = $this->Database->select('PermissionGroupAssignment', '*', '`Group`="'.$GroupId.'" ');191 $DbResult = $this->Database->select('PermissionGroupAssignment', '*', '`Group`="'.$GroupId.'" AND (AssignedGroup IS NOT NULL)'); 192 192 while($DbRow = $DbResult->fetch_array()) 193 193 { … … 232 232 233 233 // Check user-group relation 234 $DbResult = $this->Database->select('PermissionUserAssignment', 'AssignedGroup', '`User`="'.$this->User['Id'].'" ');234 $DbResult = $this->Database->select('PermissionUserAssignment', 'AssignedGroup', '`User`="'.$this->User['Id'].'" AND (AssignedGroup IS NOT NULL)'); 235 235 while($DbRow = $DbResult->fetch_array()) 236 { 237 if($this->CheckGroupPermission($DbRow['AssignedGroup'], $OperationId) == true) return(true);236 { 237 if($this->CheckGroupPermission($DbRow['AssignedGroup'], $OperationId) == true) return(true); 238 238 } 239 239 return(false); … … 380 380 function Start() 381 381 { 382 if($this->Running) return; 382 383 parent::Start(); 383 384 $this->System->Modules['User']->Models['User'] = new User($this->Database, $this->System); 384 $th us->System->Modules['User']->Models['User']->AnonymousUserId = ANONYMOUS_ID;385 $this->System->Modules['User']->Models['User']->AnonymousUserId = ANONYMOUS_ID; 385 386 $this->System->Pages['uzivatele'] = 'UserListPage'; 386 387 if(isset($_SERVER['REMOTE_ADDR'])) $this->System->Modules['User']->Models['User']->Check(); … … 393 394 if(!$Installed) 394 395 { 395 $this->Database->insert('User', array('Id' => ANONYMOUS_ID, 'Login' => 'Anonymous', 'Name' => 'Anonymous',396 'Password' => ''));396 //$this->Database->insert('User', array('Id' => ANONYMOUS_ID, 'Login' => 'Anonymous', 'Name' => 'Anonymous', 397 // 'Password' => '')); 397 398 } 398 399 }
Note:
See TracChangeset
for help on using the changeset viewer.