Fixed an issue with resources not inheriting the rights correctly