Ignore:
Timestamp:
Oct 10, 2012, 12:21:38 PM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Automatické spouštění instalovaných modulů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Modular/Modules/User/User.php

    r424 r425  
    189189  {
    190190    // 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)');
    192192    while($DbRow = $DbResult->fetch_array())
    193193    {
     
    232232
    233233      // 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)');
    235235      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);
    238238      }
    239239      return(false);
     
    380380  function Start()
    381381  {     
     382    if($this->Running) return;
    382383    parent::Start();
    383384    $this->System->Modules['User']->Models['User'] = new User($this->Database, $this->System);
    384     $thus->System->Modules['User']->Models['User']->AnonymousUserId = ANONYMOUS_ID;
     385    $this->System->Modules['User']->Models['User']->AnonymousUserId = ANONYMOUS_ID;
    385386    $this->System->Pages['uzivatele'] = 'UserListPage';
    386387    if(isset($_SERVER['REMOTE_ADDR'])) $this->System->Modules['User']->Models['User']->Check();   
     
    393394    if(!$Installed)
    394395    {
    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' => ''));
    397398    }
    398399  }
Note: See TracChangeset for help on using the changeset viewer.