Changeset 343 for trunk/finance/user_state.php
- Timestamp:
- Jan 17, 2012, 1:00:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/user_state.php
r294 r343 15 15 if(array_key_exists('Subject', $_GET)) 16 16 { 17 if(!$this->System->Mod ules['User']->CheckPermission('Finance', 'Manage')) return('Nemáte oprávnění');17 if(!$this->System->Models['User']->CheckPermission('Finance', 'Manage')) return('Nemáte oprávnění'); 18 18 $DbResult = $this->Database->query('SELECT * FROM Subject WHERE Id='.$_GET['Subject']); 19 19 $Subject = $DbResult->fetch_assoc(); 20 20 } else 21 21 { 22 if(!$this->System->Mod ules['User']->CheckPermission('Finance', 'DisplaySubjectState')) return('Nemáte oprávnění');23 $UserId = $this->System->Mod ules['User']->User['Id'];22 if(!$this->System->Models['User']->CheckPermission('Finance', 'DisplaySubjectState')) return('Nemáte oprávnění'); 23 $UserId = $this->System->Models['User']->User['Id']; 24 24 $DbResult = $this->Database->query('SELECT * FROM Subject WHERE Id=(SELECT Subject FROM Member WHERE Id=(SELECT Member FROM User WHERE Id='.$UserId.'))'); 25 25 $Subject = $DbResult->fetch_assoc();
Note:
See TracChangeset
for help on using the changeset viewer.