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
- Create an rpm repository
- Create a user
- Assign the role
rpm.rpmrepository_owner to the user on that repository
- 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
- 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.