Changeset 1322

Show
Ignore:
Timestamp:
01/13/08 14:52:06 (11 months ago)
Author:
benoitg
Message:
  • Permission.php: Fix typo that caused "Tried to check if an object of class Server has a permission of type Network" errors. Changed the id from NETWORK_PERM_ADD_NEW_NODE to NETWORK_PERM_ADD_NODE so it will auto-delete the corrupted permission.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wifidog-auth/CHANGELOG

    r1321 r1322  
    11# $Id$ 
     22008-01-13 Benoit GrĂ©goire  <bock@step.polymtl.ca> 
     3        * Permission.php:  Fix typo that caused "Tried to check if an object of class Server has a permission of type Network" errors.  Changed the id from NETWORK_PERM_ADD_NEW_NODE to NETWORK_PERM_ADD_NODE so it will auto-delete the corrupted permission. 
     4         
    252008-01-11 Benoit GrĂ©goire  <bock@step.polymtl.ca> 
    36        * Use the Dependency system to include PHPMailer and tweak Mail.php.  You'll need to re-run the Dpenedency stage of the install script. This allows:  Translating PHPMailer error messages, Actually having PHPMailer error messages, and displaying them properly. 
  • trunk/wifidog-auth/wifidog/classes/Node.php

    r1316 r1322  
    458458 
    459459        if ($network) { 
    460             Security::requirePermission(Permission::P('NETWORK_PERM_ADD_NEW_NODE'), $network); 
     460            Security::requirePermission(Permission::P('NETWORK_PERM_ADD_NODE'), $network); 
    461461            $retval = self::createNewObject($gw_id, $network); 
    462462        } 
     
    16231623            } 
    16241624        } 
    1625             if(Security::hasPermission(Permission::P('NETWORK_PERM_ADD_NEW_NODE'))){ 
     1625            if(Security::hasPermission(Permission::P('NETWORK_PERM_ADD_NODE'))){ 
    16261626            $items[] = array('path' => 'node/node_add_new', 
    16271627                'title' => sprintf(_("Add a new node")), 
  • trunk/wifidog-auth/wifidog/classes/Permission.php

    r1316 r1322  
    8989            $PERMISSIONS['NETWORK_PERM_VIEW_STATISTICS'] = array(_("User is allowed to view all statistics for this network"), StakeholderType::Network, true); 
    9090            $PERMISSIONS['NETWORK_PERM_EDIT_ANY_NODE_CONFIG'] = array(_("User is allowed to edit any configuration of any node on the network"), StakeholderType::Network, true); 
    91             $PERMISSIONS['NETWORK_PERM_ADD_NEW_NODE'] = array(_("User is allowed to create a new Node on this network"), StakeholderType::Server, true); 
     91            $PERMISSIONS['NETWORK_PERM_ADD_NODE'] = array(_("User is allowed to create a new Node on this network"), StakeholderType::Network, true); 
    9292             
    9393            $PERMISSIONS['SERVER_PERM_EDIT_ROLES'] = array(_("User is allowed to edit user role definitions"), StakeholderType::Server, true); 
  • trunk/wifidog-auth/wifidog/lib

    • Property svn:ignore changed from
      *~
      .directory
      smarty
      Phlickr
      feedpressreview
      simplepie
      magpie
      to
      *~
      .directory
      smarty
      Phlickr
      feedpressreview
      simplepie
      magpie
      PHPMailer_v2.0.0
      Smarty*