Skip to content

GetPermissionTarget returns non-nil err when permission target doesn't exist #336

@M0roSan

Description

@M0roSan

GetPermissionTarget returns non-nil err when permission target doesn't exist. I would like it to return nil err when permission target doesn't exist.

This will be useful when I perform Create/Update/Delete permission target operation. I initially check whether the permission target exists in the system.

Other instances

  • GetUser returns nil err when a user doesn't exist
  • GetGroup returns nil err when a group doesn't exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions