If I set the permissions in this order:
[write_permissions]
*/*@*/*: obogdan
*/*@myteam/*: jenkins
I get a permission denied error for the jenkins user.
However, if I set the permissions in this order:
[write_permissions]
*/*/myteam/*: jenkins
*/*@*/*: obogdan
the jenkins user can upload normally.
Also, I've just noticed, with the second order, I get a permission denied for the user obogdan.
But if I also specify the user obogdan on the first line, all permissions are ok.
[write_permissions]
*/*/myteam/*: jenkins, obogdan
*/*@*/*: obogdan
Conan search for a matching package name expression in order, so as */*@*/* match any reference, it will use that rule. So yes, the order matters. Specify first the more specific references, then the more general.
This should be clarified in the server.conf comments. I'll make a PR.
Done: #1638
Most helpful comment
Done: #1638