Changeset 599


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í.
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/System.php

    r598 r599  
    124124      if($Action['Icon'] == '') $Action['Icon'] = 'clear.png';
    125125      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))
    127127        $Output .= '<img alt="'.$Action['Title'].'" src="'.$this->Link('/images/favicons/'.$Action['Icon']).
    128128        '" width="16" height="16" /> <a href="'.$Action['URL'].'">'.$Action['Title'].'</a>';
  • trunk/Application/Version.php

    r597 r599  
    11<?php
    22
    3 $Revision = 597; // Subversion revision
     3$Revision = 599; // Subversion revision
    44$DatabaseRevision = 597; // SQL structure revision
    5 $ReleaseTime = '2013-11-20';
     5$ReleaseTime = '2013-12-06';
  • trunk/Common/Global.php

    r595 r599  
    1717include_once(dirname(__FILE__).'/Setup/Setup.php');
    1818
     19//define('NEW_PERMISSION', '1');
     20
    1921$MonthNames = array('', 'Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen',
    2022        'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec');
  • 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']);
  • trunk/Modules/Portal/Portal.php

    r597 r599  
    108108    while($Action = $DbResult->fetch_assoc())
    109109    {
    110         $Output .= $this->System->ShowAction($Action['Id']);
     110        $Output .= $this->System->ShowAction($Action['Id']).'<br/>';
    111111    }
    112112    return($this->Panel($ActionGroup['Name'], $Output));
Note: See TracChangeset for help on using the changeset viewer.