Ignore:
Timestamp:
Dec 6, 2013, 10:30:44 PM (11 years ago)
Author:
chronos
Message:
  • Upraveno: Nepoužívat zatím rozpracovaný nový systém oprávnění.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/IS/IS.php

    r597 r599  
    7474  {
    7575    $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'))
    7777      return('Nemáte oprávnění');
    7878    if(array_key_exists('o', $_GET))
     
    124124  {
    125125    $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'))
    127127      return('Nemáte oprávnění');
    128128    $this->Database->delete($Table, 'Id='.$Id);
     
    135135  {
    136136    $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'))
    138138      return('Nemáte oprávnění');
    139139    if(array_key_exists('o', $_GET))
     
    187187    if($Table != '') $FormClass = $this->System->FormManager->Classes[$Table];
    188188      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'))
    190190      return('Nemáte oprávnění');
    191191   
     
    390390  function ShowSelect($Table, $Filter = '', $Title = '')
    391391  {
    392     if(!$this->System->User->CheckPermission($this->TableToModule($Table), 'Read'))
     392    if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Read'))
    393393      return('Nemáte oprávnění');
    394394    $this->BasicHTML = true;
     
    403403  function ShowMapSelect($Table, $Filter = '', $Title = '')
    404404  {
    405     if(!$this->System->User->CheckPermission($this->TableToModule($Table), 'Write'))
     405    if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write'))
    406406      return('Nemáte oprávnění');
    407407    $MapApi = new MapApiGoogle($this->System);
     
    418418  function ShowList($Table, $Filter = '', $Title = '', $ExcludeColumn = '') 
    419419  {
    420     if(!$this->System->User->CheckPermission($this->TableToModule($Table), 'Read'))
     420    if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Read'))
    421421      return('Nemáte oprávnění');
    422422    $RowActions = '<a href="?a=view&amp;t='.$Table.'&amp;i=#RowId"><img alt="Ukázat" title="Ukázat" src="'.
     
    486486      if($MenuItem['IconName'] != '') $Image = '<img src="'.$this->System->Link('/images/favicons/'.$MenuItem['IconName']).'"/>&nbsp;';
    487487        else $Image = '<img src="'.$this->System->Link('/images/favicons/blank.png').'"/>&nbsp;';
    488       if(!$this->System->User->CheckPermission($this->TableToModule($Table), 'Write'))       
     488      //if($this->System->User->CheckPermission($this->TableToModule($Table), 'Write') or !defined('NEW_PERMISSION'))       
    489489        $Output .= '<li>'.$Image.$LinkTitle.'</li>';
    490490      $Output .= $this->ShowMenuItem($MenuItem['Id']);
Note: See TracChangeset for help on using the changeset viewer.