Skip to content

Console commands with inconsistent available permissions #756

@BuilderNSV

Description

@BuilderNSV

Security Issue Confirmation

  • I confirm this is not a security-related issue

Issue Search Confirmation

  • I have searched for existing issues and found none that match this problem

Server Operating System

Ubuntu 22.04

Browser

Firefox

Znuny Version

7.2.3

Database Type

MySQL 8.0+

Expected Behavior

Console command Admin::Group::UserLink located at Kernel/System/Console/Command/Admin/Group/UserLink.pm should allow to set 'note' permission

Actual Behavior

Console command Admin::Group::UserLink does not allow to set 'note' permission and returns "Error: please provide a valid value for option '--permission'."
At the same time command Admin::Group::RoleLink allows to set this kind of permission, and system configuration "Core::Permission" contains 'note' permission by default.

Steps to Reproduce

  1. Create an agent (lets be Agent01)
  2. Create an group (lets be Group01)
  3. Try to execute command in teminal 'sudo -su znuny bin/znuny.Console.pl Admin::Group::UserLink --user-name Agent01 --group-name Group01 --permission note

Error Messages

Error: please provide a valid value for option '--permission'.

Additional Information

No response

Screenshots

This issue happes because of 'note' permission is missed in describing AddOption() parameters and is absent in for() cycle at Line 79

Metadata

Metadata

Labels

3 - internal Issue/MRA Znuny internal issue/MR has been created.3 - verifiedThis issue or pull request was verified.4 - fixedThis is already fixed. Check Milestone.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions