Changeset 524 for trunk/Modules/Finance/UserState.php
- Timestamp:
- Apr 20, 2013, 8:51:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/UserState.php
r521 r524 14 14 if(array_key_exists('Subject', $_GET)) 15 15 { 16 if(!$this->System-> Modules['User']->CheckPermission('Finance', 'Manage')) return('Nemáte oprávnění');16 if(!$this->System->User->CheckPermission('Finance', 'Manage')) return('Nemáte oprávnění'); 17 17 $DbResult = $this->Database->query('SELECT * FROM Subject WHERE Id='.$_GET['Subject']); 18 18 $Subject = $DbResult->fetch_assoc(); 19 19 } else 20 20 { 21 if(!$this->System-> Modules['User']->CheckPermission('Finance', 'DisplaySubjectState')) return('Nemáte oprávnění');22 $UserId = $this->System-> Modules['User']->User['Id'];21 if(!$this->System->User->CheckPermission('Finance', 'DisplaySubjectState')) return('Nemáte oprávnění'); 22 $UserId = $this->System->User->User['Id']; 23 23 $DbResult = $this->Database->query('SELECT Customer FROM UserCustomerRel WHERE User='.$UserId.' LIMIT 1'); 24 24 if($DbResult->num_rows > 0)
Note:
See TracChangeset
for help on using the changeset viewer.