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

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: