Changeset 599
- Timestamp:
- Dec 6, 2013, 10:30:44 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/System.php
r598 r599 124 124 if($Action['Icon'] == '') $Action['Icon'] = 'clear.png'; 125 125 if(substr($Action['URL'], 0, 4) != 'http') $Action['URL'] = $this->Link($Action['URL']); 126 if( $this->User->CheckPermission('System', 'Read', 'Item', $Id))126 if(!defined('NEW_PERMISSION') or $this->User->CheckPermission('System', 'Read', 'Item', $Id)) 127 127 $Output .= '<img alt="'.$Action['Title'].'" src="'.$this->Link('/images/favicons/'.$Action['Icon']). 128 128 '" width="16" height="16" /> <a href="'.$Action['URL'].'">'.$Action['Title'].'</a>'; -
trunk/Application/Version.php
r597 r599 1 1 <?php 2 2 3 $Revision = 59 7; // Subversion revision3 $Revision = 599; // Subversion revision 4 4 $DatabaseRevision = 597; // SQL structure revision 5 $ReleaseTime = '2013-1 1-20';5 $ReleaseTime = '2013-12-06'; -
trunk/Common/Global.php
r595 r599 17 17 include_once(dirname(__FILE__).'/Setup/Setup.php'); 18 18 19 //define('NEW_PERMISSION', '1'); 20 19 21 $MonthNames = array('', 'Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 20 22 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec'); -
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']); -
trunk/Modules/Portal/Portal.php
r597 r599 108 108 while($Action = $DbResult->fetch_assoc()) 109 109 { 110 $Output .= $this->System->ShowAction($Action['Id']) ;110 $Output .= $this->System->ShowAction($Action['Id']).'<br/>'; 111 111 } 112 112 return($this->Panel($ActionGroup['Name'], $Output));
Note:
See TracChangeset
for help on using the changeset viewer.