Hide QuickClose with ACL

Moderator: crythias

Locked
FunnyDingo
Znuny newbie
Posts: 3
Joined: 31 Jan 2023, 16:06
Znuny Version: 6.4.5
Real Name: Dennis

Hide QuickClose with ACL

Post by FunnyDingo »

Hi all,

I've installed the extension Znuny-QuickClose. I want to hide the QuickClose button in the Ticket view for all users that are not the Ticket Owner. Similar to the default close button.

As I can see, the extension has not a build-in feature for this, so I tried using ACL.

I can hide the button if I use a fixed Agent Name in the Match settings. But I don't find a solution for a variable owner name. Example:

Code: Select all

---
- Comment: ''
  ConfigChange:
    PossibleNot:
      Action:
      - AgentTicketZnunyQuickClose
  ConfigMatch:
    Properties:
      Ticket:
        OwnerID:
        - '[Not]<OTRS_CURRENT_UserID>'
  Description: ''
  ID: 2
  Name: 1 - Quick Close Allow
  StopAfterMatch: 1
  ValidID: 1
So, has anyone an idea how to achieve my goal?

Kind regards,
Funny
root
Administrator
Posts: 4249
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Hide QuickClose with ACL

Post by root »

Hi,

This is not possible at the moment without changing code. From my point there only these options:

1. You check if the current owner is root@localhost (UserID = 1). But this will probably not work for 100% of the tickets.
2. Write a custom ACL module. In such a module you can do everything, even checking who's the current user and owner.
3. Create an issue for the Znuny-QuickClose module that they add the RequireLock function to have the same behaviour like the regular Close.
4. Create a feature-request that additional values based on the tags (<OTRS_xxx) can be used in ACLs.

- root
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Locked