On Dienstag, 4. Oktober 2016, 18:48:12 CEST wrote Erico Mendonca:
Yes, same error. Looking at the source, I found /srv/www/obs/api/app/helpers/flag_helper.rb.
The check is actually in app/controllers/source_controller.rb def update_package_meta at least when you see the change_package_protection_level error. So, better double-check that your used user has really the Admin role: osc api /person/$used_user
The default flags are declared here, but I found nowhere in the DB where these flags associated with the projects/packages. If I change the default here to “disable”, the source disappers from all projects (obviously), so this is the flag I need to set (and I can’t).
-- — Erico Mendonça Dedicated Support Engineer SUSE
Em 04/10/16 10:52, "Adrian Schröter" <adrian@suse.de<mailto:adrian@suse.de>> escreveu:
On Dienstag, 27. September 2016, 17:02:05 CEST wrote Erico Mendonca: Hello all, I need to restrict source access in a few packages. I found out about the “<sourceaccess><disable/></sourceaccess>” tags, but whenever I try to edit a package, either via the WebUI or via “osc meta pkg -e”, I get a permission error: BuildService API error: change_package_protection_level (403) admin rights are required to raise the protection level of a package. However, I do have all permissions for the package. I even tried as Admin with the same results. Any ideas? This is a private OBS instance running OBS 2.7.2.
Can you try with
osc meta prj -e ...
? Does it show the same error?
--
Adrian Schroeter email: adrian@suse.de<mailto:adrian@suse.de>
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany
-- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org