Changeset 599 for trunk/Modules/IS/IS.php
- Timestamp:
- Dec 6, 2013, 10:30:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/IS/IS.php
r597 r599 74 74 { 75 75 $Output = ''; 76 if( !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write'))76 if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write')) 77 77 return('Nemáte oprávnění'); 78 78 if(array_key_exists('o', $_GET)) … … 124 124 { 125 125 $Output = ''; 126 if( !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write'))126 if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write')) 127 127 return('Nemáte oprávnění'); 128 128 $this->Database->delete($Table, 'Id='.$Id); … … 135 135 { 136 136 $Output = ''; 137 if( !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write'))137 if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write')) 138 138 return('Nemáte oprávnění'); 139 139 if(array_key_exists('o', $_GET)) … … 187 187 if($Table != '') $FormClass = $this->System->FormManager->Classes[$Table]; 188 188 else return($this->SystemMessage('Chyba', 'Tabulka nenalezena')); 189 if( !$this->System->User->CheckPermission($this->TableToModule($Table), 'Read'))189 if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Read')) 190 190 return('Nemáte oprávnění'); 191 191 … … 390 390 function ShowSelect($Table, $Filter = '', $Title = '') 391 391 { 392 if( !$this->System->User->CheckPermission($this->TableToModule($Table), 'Read'))392 if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Read')) 393 393 return('Nemáte oprávnění'); 394 394 $this->BasicHTML = true; … … 403 403 function ShowMapSelect($Table, $Filter = '', $Title = '') 404 404 { 405 if( !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write'))405 if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write')) 406 406 return('Nemáte oprávnění'); 407 407 $MapApi = new MapApiGoogle($this->System); … … 418 418 function ShowList($Table, $Filter = '', $Title = '', $ExcludeColumn = '') 419 419 { 420 if( !$this->System->User->CheckPermission($this->TableToModule($Table), 'Read'))420 if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Read')) 421 421 return('Nemáte oprávnění'); 422 422 $RowActions = '<a href="?a=view&t='.$Table.'&i=#RowId"><img alt="Ukázat" title="Ukázat" src="'. … … 486 486 if($MenuItem['IconName'] != '') $Image = '<img src="'.$this->System->Link('/images/favicons/'.$MenuItem['IconName']).'"/> '; 487 487 else $Image = '<img src="'.$this->System->Link('/images/favicons/blank.png').'"/> '; 488 if(!$this->System->User->CheckPermission($this->TableToModule($Table), 'Write'))488 //if($this->System->User->CheckPermission($this->TableToModule($Table), 'Write') or !defined('NEW_PERMISSION')) 489 489 $Output .= '<li>'.$Image.$LinkTitle.'</li>'; 490 490 $Output .= $this->ShowMenuItem($MenuItem['Id']);
Note:
See TracChangeset
for help on using the changeset viewer.