authentication does not work

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: 1.8.1, 1.9.0 (alpha)
    • Component/s: API (A)
    • None
    • Environment:
      trunk Rev: 10922

      i use the default admin user which is added to gui access group, calling Template.create fails unless i uncomment the permission check....

      Index: api/classes/class.ctemplate.php
      ===================================================================
      — api/classes/class.ctemplate.php (revision 10947)
      +++ api/classes/class.ctemplate.php (working copy)
      @@ -906,7 +906,7 @@
      $upd_groups = CHostGroup::get($options);
      foreach($groupids as $gnum => $groupid){
      if(!isset($upd_groups[$groupid]))

      { - throw new APIException(ZBX_API_ERROR_PERMISSIONS, S_NO_PERMISSION); + next;// throw new APIException(ZBX_API_ERROR_PERMISSIONS, S_NO_PERMISSION); }

      }
      // }}} PERMISSIONS
      @@ -1589,4 +1589,4 @@
      return true;
      }
      }

            Assignee:
            Unassigned
            Reporter:
            svenw
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: