Show
Ignore:
Timestamp:
09/03/06 18:54:01 (6 years ago)
Author:
max-horvath
Message:

"2006-09-03 Max Horvath <max.horvath@…>

  • The term SPLASH_ONLY_USER displayed to people visiting the portal has been replaced by the more meaningful term \"anonymous user\" (fixes #106)
  • When creating a new node and choosing an existing node_id there will be shown an error message (fixes #223)
  • If one or more nodes aren't monitored they now will be announced on the front page (instead of just showing the number of monitored online nodes) (fixes #100)
  • Display more meaningful error messages if required user permissions are missing (fixes #242)
  • Refactored Network->getAdminUI() to match look and feel of Node->getAdminUI (fixes #140)
  • Show descriptive status of node (fixes #241)"
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/admin/generic_object_admin.php

    r1070 r1089  
    6868require_once('classes/InterfaceElements.php'); 
    6969 
     70// Check user permissions 
     71try { 
     72    $user = User::getCurrentUser(); 
     73 
     74    if (!isset($user)) { 
     75        throw new Exception(_('Access denied!')); 
     76    } else if ((!$user->isSuperAdmin() && !$user->isOwner()) || $user->isNobody()) { 
     77        throw new Exception(_('Access denied!')); 
     78    } 
     79} catch (Exception $e) { 
     80    $ui = new MainUI(); 
     81    $ui->setToolSection('ADMIN'); 
     82    $ui->displayError($e->getMessage(), false); 
     83    exit; 
     84} 
     85 
    7086// Init values 
    7187$html = "";