Keep specific resource permissions when applying permissions recursively