Skip to content

User with repository_owner permission can not create publications in a repository #4238

@balasankarc

Description

@balasankarc

Describe the bug

A user who has an rpm.rpmrepository_owner permission in an RPM repository or deb.aptrepository_owner permission in an APT repository is unable to create a publication in the repository.

To Reproduce

  1. Create an rpm repository
  2. Create a user
  3. Assign the role rpm.rpmrepository_owner to the user on that repository
  4. Try creating a publication in that repository as this user and see that it fails with the output Operation publications_rpm_rpm_create is not authorized
  5. Repeat the same with an apt repository and deb.aptrepository_owner permission and see the error Error: Operation publications_deb_apt_create is not authorized.

Expected behavior

As an "owner" of the repository, the user should be able to create publications in that repository.

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