Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18334

Zabbix Admin has no permissions to test items

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • None
    • None

      ZBXNEXT-5288 added the new functionality to test items. According to its spec:

      Only requests from admins and super admins are accepted.

      However, when an Admin tries to test an item he gets the "Permission denied" error:

      Proposed Fix:
      The issue is caused by the zbx_trapper_item_test function:

              if (SUCCEED != zbx_json_value_by_name(jp, ZBX_PROTO_TAG_SID, sessionid, sizeof(sessionid), NULL) ||
                              SUCCEED != DBget_user_by_active_session(sessionid, &user) || USER_TYPE_SUPER_ADMIN > user.type)
      

      USER_TYPE_SUPER_ADMIN here should be replaced with USER_TYPE_ZABBIX_ADMIN

            zabbix.dev Zabbix Development Team
            arimdjonoks Artjoms Rimdjonoks
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: