added support for permissions on repo basis