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/classes/Server.php

    r1085 r1089  
    403403 
    404404                        if ($_serverId) { 
    405                                 if (!User::getCurrentUser()->isSuperAdmin()) { 
    406                                         throw new Exception(_("Access denied")); 
    407                                 } 
     405                            try { 
     406                                if (!User::getCurrentUser()->isSuperAdmin()) { 
     407                                        throw new Exception(_("Access denied")); 
     408                                } 
     409                } catch (Exception $e) { 
     410                    require_once('classes/MainUI.php'); 
     411 
     412                    $ui = new MainUI(); 
     413                    $ui->setToolSection('ADMIN'); 
     414                    $ui->displayError($e->getMessage(), false); 
     415                    exit; 
     416                } 
    408417 
    409418                                $_retVal = self::createNewObject($_serverId); 
     
    780789        { 
    781790        require_once('classes/User.php'); 
    782                 if (!User::getCurrentUser()->isSuperAdmin()) { 
    783                         throw new Exception(_('Access denied!')); 
    784                 } 
     791 
     792        try { 
     793                if (!User::getCurrentUser()->isSuperAdmin()) { 
     794                        throw new Exception(_('Access denied!')); 
     795                } 
     796        } catch (Exception $e) { 
     797            $ui = new MainUI(); 
     798            $ui->setToolSection('ADMIN'); 
     799            $ui->displayError($e->getMessage(), false); 
     800            exit; 
     801        } 
    785802 
    786803                // creation_date 
     
    877894 * End: 
    878895 */ 
    879