Changeset 833 for trunk/Modules/Network


Ignore:
Timestamp:
Jul 3, 2016, 1:41:25 PM (9 years ago)
Author:
chronos
Message:
  • Modified: Show users list, device list and map only for network managers.
Location:
trunk/Modules/Network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Network/HostList.php

    r790 r833  
    1111  function Show()
    1212  {
     13    if(!$this->System->User->CheckPermission('Network', 'ShowHostList'))
     14      return('Nemáte oprávnění');
     15
    1316    if(array_key_exists('admin', $_GET)) $Where = 'AND NetworkDevice.Type IN (1,4,5) ';
    1417      else $Where = '';
  • trunk/Modules/Network/Network.php

    r830 r833  
    9090  function ShowInformation()
    9191  {
     92    if(!$this->System->User->CheckPermission('Network', 'ShowInfo'))
     93      return('Nemáte oprávnění');
     94
    9295    $Output = '<a href="'.$this->System->Link('/network/frequency-plan/').'">Frekvenční plán</a><br />';
    9396    $Output .= '<a href="'.$this->System->Link('/network/subnet/').'">Výpis registrovaných podsítí</a><br />';
Note: See TracChangeset for help on using the changeset viewer.